Class: Fluent::Plugin::Condition
- Inherits:
-
Struct
- Object
- Struct
- Fluent::Plugin::Condition
- Defined in:
- lib/fluent/plugin/out_conditional_tag_rewrite.rb
Instance Attribute Summary collapse
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#record_accessor ⇒ Object
Returns the value of attribute record_accessor.
Instance Method Summary collapse
Instance Attribute Details
#pattern ⇒ Object
Returns the value of attribute pattern
89 90 91 |
# File 'lib/fluent/plugin/out_conditional_tag_rewrite.rb', line 89 def pattern @pattern end |
#record_accessor ⇒ Object
Returns the value of attribute record_accessor
89 90 91 |
# File 'lib/fluent/plugin/out_conditional_tag_rewrite.rb', line 89 def record_accessor @record_accessor end |
Instance Method Details
#match?(record) ⇒ Boolean
90 91 92 |
# File 'lib/fluent/plugin/out_conditional_tag_rewrite.rb', line 90 def match?(record) StringUtil.match_regexp(pattern, record_accessor.call(record).to_s) end |