class ApacheCrunch::RawValueFetcher
Returns the value of an element that was captured straight from the log.
Public Instance Methods
fetch(entry, element_name)
click to toggle source
Returns the value of the Element
with the given name in the given Entry
.
Only works for elements based on tokens that we parsed directly into the Entry
. If no matching element is found, we return nil.
# File lib/element_value_fetcher.rb, line 36 def fetch(entry, element_name) element = entry.captured_elements[element_name] return nil if element.nil? element.value end