Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/event.rb

Overview

Use a custom serialization for jsonifying Time objects. TODO(sissel): Put this in a separate file.

Instance Method Summary collapse

Instance Method Details

#inspectObject



14
15
16
# File 'lib/logstash/event.rb', line 14

def inspect
  return to_json
end

#to_json(*args) ⇒ Object



10
11
12
# File 'lib/logstash/event.rb', line 10

def to_json(*args)
  return iso8601(3).to_json(*args)
end