Class: LogEventsJson
- Inherits:
-
Object
- Object
- LogEventsJson
- Defined in:
- lib/fluent/dto/logEventsJson.rb
Instance Attribute Summary collapse
-
#LogEvents ⇒ Object
Returns the value of attribute LogEvents.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(metadata, logEvents) ⇒ LogEventsJson
constructor
A new instance of LogEventsJson.
- #to_hash ⇒ Object
Constructor Details
#initialize(metadata, logEvents) ⇒ LogEventsJson
6 7 8 9 10 11 |
# File 'lib/fluent/dto/logEventsJson.rb', line 6 def initialize(,logEvents) if = nil || != 'null' = end @LogEvents = logEvents end |
Instance Attribute Details
#LogEvents ⇒ Object
Returns the value of attribute LogEvents.
5 6 7 |
# File 'lib/fluent/dto/logEventsJson.rb', line 5 def LogEvents @LogEvents end |
#metadata ⇒ Object
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/fluent/dto/logEventsJson.rb', line 5 def end |
Instance Method Details
#to_hash ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/fluent/dto/logEventsJson.rb', line 13 def to_hash { metadata: , logEvents: @LogEvents.map do |le| le.to_hash end }.compact end |