Class: LogStash::Template

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

Instance Method Summary collapse

Constructor Details

#initializeTemplate

Returns a new instance of Template.



85
86
87
# File 'lib/logstash/string_interpolation.rb', line 85

def initialize
  @nodes = []
end

Instance Method Details

#evaluate(event) ⇒ Object



89
90
91
# File 'lib/logstash/string_interpolation.rb', line 89

def evaluate(event)
  @nodes.collect { |node| node.evaluate(event) }.join
end