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.
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 |