Class: OnlinePayments::SDK::Logging::Obfuscator::HashClod

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

Overview

case insensitive hash

Instance Method Summary collapse

Constructor Details

#initialize(other) ⇒ HashClod

Returns a new instance of HashClod.



66
67
68
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 66

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

Instance Method Details

#[](key) ⇒ Object



70
71
72
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 70

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

#[]=(key, value) ⇒ Object



74
75
76
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 74

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