Class: LogStash::Filters::Elapsed_static::Element

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

Overview

class LogStash::Filters::elapsed_static

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event) ⇒ Element

Returns a new instance of Element.



259
260
261
262
# File 'lib/logstash/filters/elapsed_static.rb', line 259

def initialize(event)
  @event = event
  @age = 0
end

Instance Attribute Details

#ageObject

Returns the value of attribute age.



257
258
259
# File 'lib/logstash/filters/elapsed_static.rb', line 257

def age
  @age
end

#eventObject

Returns the value of attribute event.



257
258
259
# File 'lib/logstash/filters/elapsed_static.rb', line 257

def event
  @event
end