Method: Quantify::Quantity#represents

Defined in:
lib/quantify/quantity.rb

#representsObject

Returns a description of what the quantity describes, based upon the physica quantity which is represented by the Dimensions object in the Quantity unit. e.g.

Quantity.parse("25 yr").represents            #=> :time

1.foot.represents                             #=> :length

Quantity.new(123.456, :degree_celsius).represents
                                              #=> :temperature


102
103
104
# File 'lib/quantify/quantity.rb', line 102

def represents
  @unit.measures
end