Module: OneApm::Support::RenameRulesEngine::MatchExpression::Engine

Extended by:
Engine
Included in:
Engine
Defined in:
lib/one_apm/support/rename_rules_engine/match_expression/engine.rb

Instance Method Summary collapse

Instance Method Details

#create_match_expression(expression) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/one_apm/support/rename_rules_engine/match_expression/engine.rb', line 17

def create_match_expression(expression)
  expression = DottedHash.new(expression)
  case expression[:name].downcase
    when 'splitobject'
      SplitObject.new(expression)
    when 'method'
      Method.new(expression)
    when 'url'
      Url.new(expression)
    else
      Base.new(expression)
  end
end