Class: Chemicalml::Model::ReactantList

Inherits:
Node
  • Object
show all
Defined in:
lib/chemicalml/model/reactant_list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#reactantsObject

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

#childrenObject



12
13
14
# File 'lib/chemicalml/model/reactant_list.rb', line 12

def children
  reactants
end

#value_attributesObject



16
17
18
# File 'lib/chemicalml/model/reactant_list.rb', line 16

def value_attributes
  { reactants: reactants }
end