class LogExtractor::Hit

Public Instance Methods

method_missing(method_name, *_args, &_block) click to toggle source
Calls superclass method
# File lib/log_extractor/hit.rb, line 7
def method_missing(method_name, *_args, &_block)
  value = source[method_name.to_s]
  value.nil? ? super : value
end
respond_to_missing?(method_name, *_args) click to toggle source
# File lib/log_extractor/hit.rb, line 12
def respond_to_missing?(method_name, *_args)
  !source[method_name.to_s].nil?
end
timestamp() click to toggle source
# File lib/log_extractor/hit.rb, line 16
def timestamp
  DateTime.rfc3339(source["@timestamp"]).to_time
end