Class: Chem::SMBL::SMBLReaction
- Inherits:
-
Object
- Object
- Chem::SMBL::SMBLReaction
- Defined in:
- lib/chem/db/smbl.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#products ⇒ Object
readonly
Returns the value of attribute products.
-
#reactants ⇒ Object
readonly
Returns the value of attribute reactants.
Instance Method Summary collapse
-
#initialize(name, reversible) ⇒ SMBLReaction
constructor
A new instance of SMBLReaction.
Constructor Details
#initialize(name, reversible) ⇒ SMBLReaction
Returns a new instance of SMBLReaction.
24 25 26 27 28 29 |
# File 'lib/chem/db/smbl.rb', line 24 def initialize name, reversible @name = name @reversible = reversible @reactants = [] @products = [] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
23 24 25 |
# File 'lib/chem/db/smbl.rb', line 23 def name @name end |
#products ⇒ Object (readonly)
Returns the value of attribute products.
23 24 25 |
# File 'lib/chem/db/smbl.rb', line 23 def products @products end |
#reactants ⇒ Object (readonly)
Returns the value of attribute reactants.
23 24 25 |
# File 'lib/chem/db/smbl.rb', line 23 def reactants @reactants end |