Class: Ingenico::Connect::SDK::Logging::Obfuscator::HashClod

Inherits:
Hash
  • Object
show all
Defined in:
lib/ingenico/connect/sdk/logging/logging_util.rb

Overview

case insensitive hash

Instance Method Summary collapse

Constructor Details

#initialize(other) ⇒ HashClod

Returns a new instance of HashClod.



95
96
97
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 95

def initialize(other)
  other.each { |k, v| self.[]=(k, v) }
end

Instance Method Details

#[](key) ⇒ Object



99
100
101
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 99

def [](key)
  super _insensitive(key)
end

#[]=(key, value) ⇒ Object



103
104
105
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 103

def []=(key, value)
  super _insensitive(key), value
end