Module: Arango::Collection_Return

Included in:
Document, Index
Defined in:
lib/helpers/Return.rb

Instance Method Summary collapse

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