Sha256: 874e0073276591907ed1e41205ca971ac983ff9a9009eef9128840d52e3351b7

Contents?: true

Size: 344 Bytes

Versions: 39

Compression:

Stored size: 344 Bytes

Contents

# encoding: utf-8

# This class is used by OneApm::Manager.set_sql_obfuscator to chain multiple
# obfuscation blocks when not using the default :replace action
class OneApm::ChainedCall
  def initialize(block1, block2)
    @block1 = block1
    @block2 = block2
  end

  def call(sql)
    sql = @block1.call(sql)
    @block2.call(sql)
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
oneapm_rpm-1.2.9.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.8 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.8.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.7 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.7.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.6 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.6.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.5 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.5.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.4 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.4.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.3 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.3.rc2 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.2 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.2.rc lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.1.rc lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.0 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.1.3 lib/one_apm/support/chained_call.rb