Class: HttpDouble::RequestLogger::HashWithIndifferentAccess

Inherits:
Hash
  • Object
show all
Defined in:
lib/http_double/request_logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(other_hash = {}) ⇒ HashWithIndifferentAccess



107
108
109
# File 'lib/http_double/request_logger.rb', line 107

def initialize(other_hash = {})
  merge! other_hash
end

Instance Method Details

#merge!(other_hash) ⇒ Object



111
112
113
# File 'lib/http_double/request_logger.rb', line 111

def merge!(other_hash)
  other_hash.each { |k, v| self[k] = v }
end