Class: Fluent::Plugin::And
- Inherits:
-
Struct
- Object
- Struct
- Fluent::Plugin::And
- Defined in:
- lib/fluent/plugin/out_conditional_tag_rewrite.rb
Instance Attribute Summary collapse
-
#conditions ⇒ Object
Returns the value of attribute conditions.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
Instance Attribute Details
#conditions ⇒ Object
Returns the value of attribute conditions
95 96 97 |
# File 'lib/fluent/plugin/out_conditional_tag_rewrite.rb', line 95 def conditions @conditions end |
#tag ⇒ Object
Returns the value of attribute tag
95 96 97 |
# File 'lib/fluent/plugin/out_conditional_tag_rewrite.rb', line 95 def tag @tag end |
Instance Method Details
#match?(record) ⇒ Boolean
96 97 98 |
# File 'lib/fluent/plugin/out_conditional_tag_rewrite.rb', line 96 def match?(record) conditions.all? { |condition| condition.match?(record) } end |