Class: Fishbowl::Objects::UOM

Inherits:
BaseObject 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_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

#activeObject

Returns the value of attribute active.



3
4
5
# File 'lib/fishbowl/objects/uom.rb', line 3

def active
  @active
end

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/fishbowl/objects/uom.rb', line 3

def code
  @code
end

#integralObject

Returns the value of attribute integral.



3
4
5
# File 'lib/fishbowl/objects/uom.rb', line 3

def integral
  @integral
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/fishbowl/objects/uom.rb', line 3

def name
  @name
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/fishbowl/objects/uom.rb', line 3

def type
  @type
end

#uom_conversionsObject

Returns the value of attribute uom_conversions.



4
5
6
# File 'lib/fishbowl/objects/uom.rb', line 4

def uom_conversions
  @uom_conversions
end

#uomidObject

Returns the value of attribute uomid.



3
4
5
# File 'lib/fishbowl/objects/uom.rb', line 3

def uomid
  @uomid
end

Class Method Details

.attributesObject



6
7
8
# File 'lib/fishbowl/objects/uom.rb', line 6

def self.attributes
  %w{UOMID Name Code Integral Active Type}
end