Class: LogStash::Template
- Inherits:
-
Object
- Object
- LogStash::Template
- Extended by:
- Forwardable
- Defined in:
- lib/logstash/string_interpolation.rb
Instance Method Summary collapse
- #evaluate(event) ⇒ Object
-
#initialize ⇒ Template
constructor
A new instance of Template.
Constructor Details
#initialize ⇒ Template
Returns a new instance of Template.
75 76 77 |
# File 'lib/logstash/string_interpolation.rb', line 75 def initialize @nodes = [] end |
Instance Method Details
#evaluate(event) ⇒ Object
79 80 81 |
# File 'lib/logstash/string_interpolation.rb', line 79 def evaluate(event) @nodes.collect { |node| node.evaluate(event) }.join end |