Class: CouchRest::Response

Inherits:
Hash show all
Defined in:
lib/couchrest/core/response.rb

Direct Known Subclasses

Document

Instance Method Summary collapse

Methods inherited from Hash

===

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

Instance Method Details

#[](key) ⇒ Object



12
13
14
# File 'lib/couchrest/core/response.rb', line 12

def [](key)
  super(key.to_s)
end

#[]=(key, value) ⇒ Object



9
10
11
# File 'lib/couchrest/core/response.rb', line 9

def []=(key, value)
  super(key.to_s, value)
end