Class: Raygun::Apm::Blacklist::Translator

Inherits:
Object
  • Object
show all
Defined in:
lib/raygun/apm/blacklist/translator.rb

Defined Under Namespace

Classes: DotnetTranslator, RubyTranslator

Instance Method Summary collapse

Constructor Details

#initializeTranslator

Returns a new instance of Translator.



67
68
69
70
# File 'lib/raygun/apm/blacklist/translator.rb', line 67

def initialize
  @ruby = RubyTranslator.new
  @dotnet = DotnetTranslator.new
end

Instance Method Details

#translate(filter) ⇒ Object



72
73
74
75
# File 'lib/raygun/apm/blacklist/translator.rb', line 72

def translate(filter)
  translated = @ruby.translate(filter)
  translated ? translated : @dotnet.translate(filter)
end