Class: OneApm::Support::RenameRulesEngine::MatchExpression::Method

Inherits:
Base
  • Object
show all
Defined in:
lib/one_apm/support/rename_rules_engine/match_expression/method.rb

Instance Attribute Summary

Attributes inherited from Base

#is_not, #match_value, #operate, #state

Instance Method Summary collapse

Methods inherited from Base

#initialize, #type_match?

Constructor Details

This class inherits a constructor from OneApm::Support::RenameRulesEngine::MatchExpression::Base

Instance Method Details

#match?(request) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
13
14
# File 'lib/one_apm/support/rename_rules_engine/match_expression/method.rb', line 10

def match?(request)
  return true if !state
  match_result = type_match?(operate.downcase,match_value.to_s,request.method.to_s)
  is_not ? !match_result : match_result
end