Class: Response::Params
- Inherits:
-
Hash
- Object
- Hash
- Response::Params
- Defined in:
- lib/endpoint/response.rb
Overview
Allows more comfortable use of Symbol keys when accessing params (which are string keys).
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
11 12 13 |
# File 'lib/endpoint/response.rb', line 11 def [](key) super(key.to_s) end |
#[]=(key, value) ⇒ Object
14 15 16 |
# File 'lib/endpoint/response.rb', line 14 def []=(key, value) super(key.to_s, value) end |