Class: NewRelic::ChainedCall
- Inherits:
-
Object
- Object
- NewRelic::ChainedCall
- Defined in:
- lib/new_relic/agent/chained_call.rb
Overview
This is used to allow obfuscators to be chained.
Instance Method Summary collapse
- #call(sql) ⇒ Object
-
#initialize(block1, block2) ⇒ ChainedCall
constructor
A new instance of ChainedCall.
Constructor Details
#initialize(block1, block2) ⇒ ChainedCall
Returns a new instance of ChainedCall.
4 5 6 7 |
# File 'lib/new_relic/agent/chained_call.rb', line 4 def initialize(block1, block2) @block1 = block1 @block2 = block2 end |
Instance Method Details
#call(sql) ⇒ Object
9 10 11 12 |
# File 'lib/new_relic/agent/chained_call.rb', line 9 def call(sql) sql = @block1.call(sql) @block2.call(sql) end |