Class: Humanoid::Collections::Master
- Includes:
- Mimic
- Defined in:
- lib/humanoid/collections/master.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
Instance Method Summary collapse
-
#initialize(master, name) ⇒ Master
constructor
Create the new database writer.
Methods included from Mimic
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
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
7 8 9 |
# File 'lib/humanoid/collections/master.rb', line 7 def collection @collection end |