class OneApm::ChainedCall

This class is used by OneApm::Manager.set_sql_obfuscator to chain multiple obfuscation blocks when not using the default :replace action

Public Class Methods

new(block1, block2) click to toggle source
# File lib/one_apm/support/chained_call.rb, line 6
def initialize(block1, block2)
  @block1 = block1
  @block2 = block2
end

Public Instance Methods

call(sql) click to toggle source
# File lib/one_apm/support/chained_call.rb, line 11
def call(sql)
  sql = @block1.call(sql)
  @block2.call(sql)
end