Method: SimpleXml::Value#initialize

Defined in:
lib/model/types.rb

#initialize(quantity, unit, inclusive, type = 'PQ') ⇒ Value

Returns a new instance of Value.



26
27
28
29
30
31
# File 'lib/model/types.rb', line 26

def initialize(quantity, unit, inclusive, type='PQ')
  @type = type
  @value = quantity
  @inclusive = inclusive
  @unit = translate_unit(unit)
end