Class: Fathom::DataCollection
- Inherits:
-
DiscreteNode
- Object
- Node
- DiscreteNode
- Fathom::DataCollection
- Defined in:
- lib/fathom/node/data_collection.rb
Instance Attribute Summary
Attributes inherited from DiscreteNode
Attributes inherited from Node
#description, #distribution, #name, #values
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ DataCollection
constructor
A new instance of DataCollection.
Methods inherited from DiscreteNode
Methods inherited from Node
#add_child, #add_parent, #children, #inspect, #name_sym, #parents, #register_child, #register_parent, #simple_inspect
Constructor Details
#initialize(opts = {}) ⇒ DataCollection
Returns a new instance of DataCollection.
18 19 20 21 22 |
# File 'lib/fathom/node/data_collection.rb', line 18 def initialize(opts={}) opts = extract_labels(opts) opts[:name] ||= UUID.generate super(opts) end |