Class: Humanoid::Collections::Master

Inherits:
Object
  • Object
show all
Includes:
Mimic
Defined in:
lib/humanoid/collections/master.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mimic

included

Constructor Details

#initialize(master, name) ⇒ Master

Create the new database writer. Will create a collection from the master database.

Example:

Master.new(master, "humanoid_people")



23
24
25
# File 'lib/humanoid/collections/master.rb', line 23

def initialize(master, name)
  @collection = master.collection(name)
end

Instance Attribute Details

#collectionObject (readonly)

Returns the value of attribute collection.



7
8
9
# File 'lib/humanoid/collections/master.rb', line 7

def collection
  @collection
end