Class: Unitsml::Unitsdb::DimensionQuantity
- Inherits:
-
Object
- Object
- Unitsml::Unitsdb::DimensionQuantity
- Defined in:
- lib/unitsml/unitsdb/dimension_quantity.rb
Instance Attribute Summary collapse
-
#dim_symbols ⇒ Object
Returns the value of attribute dim_symbols.
-
#power_numerator ⇒ Object
Returns the value of attribute power_numerator.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
Instance Method Summary collapse
Instance Attribute Details
#dim_symbols ⇒ Object
Returns the value of attribute dim_symbols.
6 7 8 |
# File 'lib/unitsml/unitsdb/dimension_quantity.rb', line 6 def dim_symbols @dim_symbols end |
#power_numerator ⇒ Object
Returns the value of attribute power_numerator.
6 7 8 |
# File 'lib/unitsml/unitsdb/dimension_quantity.rb', line 6 def power_numerator @power_numerator end |
#symbol ⇒ Object
Returns the value of attribute symbol.
6 7 8 |
# File 'lib/unitsml/unitsdb/dimension_quantity.rb', line 6 def symbol @symbol end |
Instance Method Details
#dim_symbols_ids(hash, dim_id) ⇒ Object
10 11 12 |
# File 'lib/unitsml/unitsdb/dimension_quantity.rb', line 10 def dim_symbols_ids(hash, dim_id) dim_symbols.each { |dim_sym| hash[dim_sym.id] = dim_id } end |