Class: PuzzlyApiPlugin::ContextsCollection
- Inherits:
-
Collection
- Object
- Hash
- JSONable
- Collection
- PuzzlyApiPlugin::ContextsCollection
- Includes:
- Singleton
- Defined in:
- lib/puzzly_api_plugin/collection/contexts.rb
Instance Method Summary collapse
Methods inherited from Collection
#add_metadata, #get_by_id, #identities
Methods inherited from JSONable
Instance Method Details
#add(document) ⇒ Object
7 8 9 10 |
# File 'lib/puzzly_api_plugin/collection/contexts.rb', line 7 def add(document) context = Context.create(document) context end |