Class: OneApm::Support::RenameRulesEngine::MatchExpression::Url

Inherits:
Base
  • Object
show all
Defined in:
lib/one_apm/support/rename_rules_engine/match_expression/url.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)


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

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