Class: Fishbowl::Objects::UOM
- Inherits:
-
BaseObject
- Object
- BaseObject
- Fishbowl::Objects::UOM
- Defined in:
- lib/fishbowl/objects/uom.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#code ⇒ Object
Returns the value of attribute code.
-
#integral ⇒ Object
Returns the value of attribute integral.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#uom_conversions ⇒ Object
Returns the value of attribute uom_conversions.
-
#uomid ⇒ Object
Returns the value of attribute uomid.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(uom_xml) ⇒ UOM
constructor
A new instance of UOM.
Methods inherited from BaseObject
Constructor Details
#initialize(uom_xml) ⇒ UOM
Returns a new instance of UOM.
10 11 12 13 14 15 16 17 |
# File 'lib/fishbowl/objects/uom.rb', line 10 def initialize(uom_xml) @xml = uom_xml parse_attributes @uom_conversions = get_uom_conversions self end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
3 4 5 |
# File 'lib/fishbowl/objects/uom.rb', line 3 def active @active end |
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/fishbowl/objects/uom.rb', line 3 def code @code end |
#integral ⇒ Object
Returns the value of attribute integral.
3 4 5 |
# File 'lib/fishbowl/objects/uom.rb', line 3 def integral @integral end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/fishbowl/objects/uom.rb', line 3 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/fishbowl/objects/uom.rb', line 3 def type @type end |
#uom_conversions ⇒ Object
Returns the value of attribute uom_conversions.
4 5 6 |
# File 'lib/fishbowl/objects/uom.rb', line 4 def uom_conversions @uom_conversions end |
#uomid ⇒ Object
Returns the value of attribute uomid.
3 4 5 |
# File 'lib/fishbowl/objects/uom.rb', line 3 def uomid @uomid end |
Class Method Details
.attributes ⇒ Object
6 7 8 |
# File 'lib/fishbowl/objects/uom.rb', line 6 def self.attributes %w{UOMID Name Code Integral Active Type} end |