couchrest_model/lib/couchrest/core/document.rb
2008-11-03 22:52:50 -08:00

25 lines
336 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
class Document < Response
end
class Design < Document
end
end