Class: Fishbowl::Objects::UOMConversion
- Inherits:
-
BaseObject
- Object
- BaseObject
- Fishbowl::Objects::UOMConversion
- Defined in:
- lib/fishbowl/objects/uom.rb
Instance Attribute Summary collapse
-
#conversion_factor ⇒ Object
Returns the value of attribute conversion_factor.
-
#conversion_multiply ⇒ Object
Returns the value of attribute conversion_multiply.
-
#main_uom_id ⇒ Object
Returns the value of attribute main_uom_id.
-
#to_uom_code ⇒ Object
Returns the value of attribute to_uom_code.
-
#to_uom_id ⇒ Object
Returns the value of attribute to_uom_id.
-
#to_uom_is_integral ⇒ Object
Returns the value of attribute to_uom_is_integral.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(uom_conversion_xml) ⇒ UOMConversion
constructor
A new instance of UOMConversion.
Methods inherited from BaseObject
Constructor Details
#initialize(uom_conversion_xml) ⇒ UOMConversion
Returns a new instance of UOMConversion.
41 42 43 44 45 |
# File 'lib/fishbowl/objects/uom.rb', line 41 def initialize(uom_conversion_xml) @xml = uom_conversion_xml parse_attributes self end |
Instance Attribute Details
#conversion_factor ⇒ Object
Returns the value of attribute conversion_factor.
35 36 37 |
# File 'lib/fishbowl/objects/uom.rb', line 35 def conversion_factor @conversion_factor end |
#conversion_multiply ⇒ Object
Returns the value of attribute conversion_multiply.
34 35 36 |
# File 'lib/fishbowl/objects/uom.rb', line 34 def conversion_multiply @conversion_multiply end |
#main_uom_id ⇒ Object
Returns the value of attribute main_uom_id.
34 35 36 |
# File 'lib/fishbowl/objects/uom.rb', line 34 def main_uom_id @main_uom_id end |
#to_uom_code ⇒ Object
Returns the value of attribute to_uom_code.
34 35 36 |
# File 'lib/fishbowl/objects/uom.rb', line 34 def to_uom_code @to_uom_code end |
#to_uom_id ⇒ Object
Returns the value of attribute to_uom_id.
34 35 36 |
# File 'lib/fishbowl/objects/uom.rb', line 34 def to_uom_id @to_uom_id end |
#to_uom_is_integral ⇒ Object
Returns the value of attribute to_uom_is_integral.
35 36 37 |
# File 'lib/fishbowl/objects/uom.rb', line 35 def to_uom_is_integral @to_uom_is_integral end |
Class Method Details
.attributes ⇒ Object
37 38 39 |
# File 'lib/fishbowl/objects/uom.rb', line 37 def self.attributes %w{MainUOMID ToUOMID ToUOMCode ConversionMultiply ConversionFactor ToUOMIsIntegral} end |