Class: Fishbowl::Objects::UOMConversion

Inherits:
BaseObject
  • Object
show all
Defined in:
lib/fishbowl/objects/uom.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#send_request

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_factorObject

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_multiplyObject

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_idObject

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_codeObject

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_idObject

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_integralObject

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

.attributesObject



37
38
39
# File 'lib/fishbowl/objects/uom.rb', line 37

def self.attributes
  %w{MainUOMID ToUOMID ToUOMCode ConversionMultiply ConversionFactor ToUOMIsIntegral}
end