Class: Raygun::Apm::Blacklist::Translator
- Inherits:
-
Object
- Object
- Raygun::Apm::Blacklist::Translator
- Defined in:
- lib/raygun/apm/blacklist/translator.rb
Defined Under Namespace
Classes: DotnetTranslator, RubyTranslator
Instance Method Summary collapse
-
#initialize ⇒ Translator
constructor
A new instance of Translator.
- #translate(filter) ⇒ Object
Constructor Details
#initialize ⇒ Translator
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 |