Class: PuzzlyApiPlugin::ContextsCollection

Inherits:
Collection show all
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

#copy_to_hash, #to_s

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