Class: Chemicalml::Model::ReactionList
- Defined in:
- lib/chemicalml/model/reaction_list.rb
Overview
A reaction cascade: ordered list of Reaction instances where
each step's products are the next step's reactants.
Instance Attribute Summary collapse
-
#reactions ⇒ Object
Returns the value of attribute reactions.
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(reactions: []) ⇒ ReactionList
constructor
A new instance of ReactionList.
- #value_attributes ⇒ Object
Methods inherited from Node
#==, #accept, #hash, short_name
Constructor Details
#initialize(reactions: []) ⇒ ReactionList
Returns a new instance of ReactionList.
10 11 12 |
# File 'lib/chemicalml/model/reaction_list.rb', line 10 def initialize(reactions: []) @reactions = reactions end |
Instance Attribute Details
#reactions ⇒ Object
Returns the value of attribute reactions.
8 9 10 |
# File 'lib/chemicalml/model/reaction_list.rb', line 8 def reactions @reactions end |
Instance Method Details
#children ⇒ Object
14 15 16 |
# File 'lib/chemicalml/model/reaction_list.rb', line 14 def children reactions end |
#value_attributes ⇒ Object
18 19 20 |
# File 'lib/chemicalml/model/reaction_list.rb', line 18 def value_attributes { reactions: reactions } end |