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.



74
75
76
# File 'lib/logstash/string_interpolation.rb', line 74

def initialize
  @nodes = []
end

Instance Method Details

#evaluate(event) ⇒ Object



78
79
80
# File 'lib/logstash/string_interpolation.rb', line 78

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