Class: Time
- Inherits:
-
Object
- Object
- Time
- 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
#inspect ⇒ Object
16 17 18 |
# File 'lib/logstash/event.rb', line 16 def inspect return to_json end |
#to_json(*args) ⇒ Object
12 13 14 |
# File 'lib/logstash/event.rb', line 12 def to_json(*args) return iso8601(3).to_json(*args) end |