Class: Unitsml::Unitsdb::DimensionQuantity

Inherits:
Object
  • Object
show all
Defined in:
lib/unitsml/unitsdb/dimension_quantity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dim_symbolsObject

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_numeratorObject

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

#symbolObject

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