Module: Arango::Collection_Return
Instance Method Summary collapse
- #collection=(collection) ⇒ Object (also: #assign_collection)
Instance Method Details
#collection=(collection) ⇒ Object Also known as: assign_collection
44 45 46 47 48 49 50 |
# File 'lib/helpers/Return.rb', line 44 def collection=(collection) satisfy_class?(collection, [Arango::Collection]) @collection = collection @graph = @collection.graph @database = @collection.database @server = @database.server end |