couchrest_model/lib/couchrest/core/response.rb
2009-02-05 16:56:48 -08:00

15 lines
253 B
Ruby

module CouchRest
class Response < Hash
def initialize(keys = {})
keys.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