Class: Seimi::Formula::Component
- Inherits:
-
Struct
- Object
- Struct
- Seimi::Formula::Component
- Defined in:
- lib/seimi/formula.rb
Instance Attribute Summary collapse
-
#atomic_mass ⇒ Object
Returns the value of attribute atomic_mass.
-
#balance_symbol ⇒ Object
Returns the value of attribute balance_symbol.
-
#count ⇒ Object
Returns the value of attribute count.
-
#element ⇒ Object
Returns the value of attribute element.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
Instance Method Summary collapse
Instance Attribute Details
#atomic_mass ⇒ Object
Returns the value of attribute atomic_mass
9 10 11 |
# File 'lib/seimi/formula.rb', line 9 def atomic_mass @atomic_mass end |
#balance_symbol ⇒ Object
Returns the value of attribute balance_symbol
9 10 11 |
# File 'lib/seimi/formula.rb', line 9 def balance_symbol @balance_symbol end |
#count ⇒ Object
Returns the value of attribute count
9 10 11 |
# File 'lib/seimi/formula.rb', line 9 def count @count end |
#element ⇒ Object
Returns the value of attribute element
9 10 11 |
# File 'lib/seimi/formula.rb', line 9 def element @element end |
#symbol ⇒ Object
Returns the value of attribute symbol
9 10 11 |
# File 'lib/seimi/formula.rb', line 9 def symbol @symbol end |
Instance Method Details
#total_mass ⇒ Object
10 11 12 |
# File 'lib/seimi/formula.rb', line 10 def total_mass atomic_mass * count end |