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.4.2 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.4.1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.4.0 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.7 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.7.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.6 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.5 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.4 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.3 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.2 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.0 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/support/chained_call.rb
oneapm_rpm-1.2.9 lib/one_apm/support/chained_call.rb