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.



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

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

Instance Method Details

#[](key) ⇒ Object



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

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

#[]=(key, value) ⇒ Object



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

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