Method: Unity::Quantity#initialize

Defined in:
lib/unity/quantity.rb

#initialize(attributes = {}) ⇒ Quantity

Returns a new instance of Quantity.



9
10
11
12
13
14
# File 'lib/unity/quantity.rb', line 9

def initialize(attributes = {})
  attributes.each do |name, value|
    send("#{name}=", value)
  end
  super
end