Class: UOM::Dimension

Inherits:
Object
  • Object
show all
Defined in:
lib/uom/dimension.rb

Overview

Dimension enumerates the standard Unit dimensions. These consist of the seven physical International System of Units SI base unit dimensions and an INFORMATION dimension for representing computer storage.

Direct Known Subclasses

CompositeDimension

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label) ⇒ Dimension

Returns a new instance of Dimension.



9
10
11
# File 'lib/uom/dimension.rb', line 9

def initialize(label)
  @label = label
end

Instance Attribute Details

#labelObject

Returns the value of attribute label.



7
8
9
# File 'lib/uom/dimension.rb', line 7

def label
  @label
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/uom/dimension.rb', line 13

def to_s
  @label
end