Class: Chem::SMBL::Specie
- Inherits:
-
Object
- Object
- Chem::SMBL::Specie
- Defined in:
- lib/chem/db/smbl.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, compartment, boundaryCondition, initialAmount) ⇒ Specie
constructor
A new instance of Specie.
Constructor Details
#initialize(name, compartment, boundaryCondition, initialAmount) ⇒ Specie
Returns a new instance of Specie.
13 14 15 16 17 18 |
# File 'lib/chem/db/smbl.rb', line 13 def initialize name, compartment, boundaryCondition, initialAmount @name = name @compartment = compartment @boundaryCondition = "false" == boundaryCondition @initialAmount = initialAmount.to_f end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
12 13 14 |
# File 'lib/chem/db/smbl.rb', line 12 def name @name end |