Class: LogStash::Filters::Elapsed::Element
- Inherits:
-
Object
- Object
- LogStash::Filters::Elapsed::Element
- Defined in:
- lib/logstash/filters/elapsed.rb
Overview
class LogStash::Filters::Elapsed
Instance Attribute Summary collapse
-
#age ⇒ Object
Returns the value of attribute age.
-
#event ⇒ Object
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(event) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(event) ⇒ Element
Returns a new instance of Element.
252 253 254 255 |
# File 'lib/logstash/filters/elapsed.rb', line 252 def initialize(event) @event = event @age = 0 end |
Instance Attribute Details
#age ⇒ Object
Returns the value of attribute age.
250 251 252 |
# File 'lib/logstash/filters/elapsed.rb', line 250 def age @age end |
#event ⇒ Object
Returns the value of attribute event.
250 251 252 |
# File 'lib/logstash/filters/elapsed.rb', line 250 def event @event end |