Class: OneApm::Support::RenameRulesEngine::MatchExpression::SplitObject
- Inherits:
-
Base
- Object
- Base
- OneApm::Support::RenameRulesEngine::MatchExpression::SplitObject
- Defined in:
- lib/one_apm/support/rename_rules_engine/match_expression/split_object.rb
Instance Attribute Summary
Attributes inherited from Base
#is_not, #match_value, #operate, #state
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from OneApm::Support::RenameRulesEngine::MatchExpression::Base
Instance Method Details
#match?(request) ⇒ Boolean
8 9 10 11 12 13 |
# File 'lib/one_apm/support/rename_rules_engine/match_expression/split_object.rb', line 8 def match?(request) return true if match_value.downcase=='all' return true if !state match_result = type_match?(operate.downcase, match_value, "#{request.uri.host}:#{request.port}") is_not ? !match_result : match_result end |