couchrest_model/lib/couchrest/core/response.rb
2009-03-02 21:15:02 -08:00

16 lines
No EOL
276 B
Ruby

module CouchRest
class Response < Hash
def initialize(pkeys = {})
pkeys ||= {}
pkeys.each do |k,v|
self[k.to_s] = v
end
end
def []=(key, value)
super(key.to_s, value)
end
def [](key)
super(key.to_s)
end
end
end