Class: Fluent::Plugin::And

Inherits:
Struct
  • Object
show all
Defined in:
lib/fluent/plugin/out_conditional_tag_rewrite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#conditionsObject

Returns the value of attribute conditions

Returns:

  • (Object)

    the current value of conditions



95
96
97
# File 'lib/fluent/plugin/out_conditional_tag_rewrite.rb', line 95

def conditions
  @conditions
end

#tagObject

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of 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

Returns:

  • (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