Class: HttpDouble::RequestLogger::HashWithIndifferentAccess
- Inherits:
-
Hash
- Object
- Hash
- HttpDouble::RequestLogger::HashWithIndifferentAccess
- Defined in:
- lib/http_double/request_logger.rb
Instance Method Summary collapse
-
#initialize(other_hash = {}) ⇒ HashWithIndifferentAccess
constructor
A new instance of HashWithIndifferentAccess.
- #merge!(other_hash) ⇒ Object
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 |