Class: MongoHQClient::Collection
- Inherits:
-
Object
- Object
- MongoHQClient::Collection
- Defined in:
- lib/mongohq-client/collection.rb
Instance Method Summary collapse
Methods included from HTTP
Methods included from Commons
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MongoHQClient::Commons
Instance Method Details
#document(id) ⇒ Object
18 19 20 21 22 |
# File 'lib/mongohq-client/collection.rb', line 18 def document(id) json = get("databases/#{database}/collections/#{name}/documents/#{id}") Document.new(json: json) end |