Class: CouchRest::Response
Direct Known Subclasses
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize(pkeys = {}) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(pkeys = {}) ⇒ Response
Returns a new instance of Response.
3 4 5 6 7 8 |
# File 'lib/couchrest/core/response.rb', line 3 def initialize(pkeys = {}) pkeys ||= {} pkeys.each do |k,v| self[k.to_s] = v end end |