Class: Chemicalml::Model::ReactantList
- Defined in:
- lib/chemicalml/model/reactant_list.rb
Instance Attribute Summary collapse
-
#reactants ⇒ Object
Returns the value of attribute reactants.
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(reactants: []) ⇒ ReactantList
constructor
A new instance of ReactantList.
- #value_attributes ⇒ Object
Methods inherited from Node
#==, #accept, #hash, short_name
Constructor Details
#initialize(reactants: []) ⇒ ReactantList
Returns a new instance of ReactantList.
8 9 10 |
# File 'lib/chemicalml/model/reactant_list.rb', line 8 def initialize(reactants: []) @reactants = reactants end |
Instance Attribute Details
#reactants ⇒ Object
Returns the value of attribute reactants.
6 7 8 |
# File 'lib/chemicalml/model/reactant_list.rb', line 6 def reactants @reactants end |
Instance Method Details
#children ⇒ Object
12 13 14 |
# File 'lib/chemicalml/model/reactant_list.rb', line 12 def children reactants end |
#value_attributes ⇒ Object
16 17 18 |
# File 'lib/chemicalml/model/reactant_list.rb', line 16 def value_attributes { reactants: reactants } end |