Class: Ingenico::Direct::SDK::Logging::Obfuscator::HashClod

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

Overview

case insensitive hash

Instance Method Summary collapse

Constructor Details

#initialize(other) ⇒ HashClod

Returns a new instance of HashClod.



61
62
63
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 61

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

Instance Method Details

#[](key) ⇒ Object



65
66
67
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 65

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

#[]=(key, value) ⇒ Object



69
70
71
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 69

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