Class: LogStash::StaticNode

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

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ StaticNode

Returns a new instance of StaticNode.



92
93
94
# File 'lib/logstash/string_interpolation.rb', line 92

def initialize(content)
  @content = content
end

Instance Method Details

#evaluate(event) ⇒ Object



96
97
98
# File 'lib/logstash/string_interpolation.rb', line 96

def evaluate(event)
  @content
end