Class: RubyOmx::SupplierItemUpdateRequest

Inherits:
Request show all
Defined in:
lib/ruby_omx/request/supplier_item_update_request.rb

Instance Attribute Summary

Attributes inherited from Request

#raw_xml

Instance Method Summary collapse

Methods inherited from Response

format, parse_xml

Methods inherited from Node

#accessors, #as_hash

Constructor Details

#initialize(attrs = {}) ⇒ SupplierItemUpdateRequest

Returns a new instance of SupplierItemUpdateRequest.



16
17
18
19
20
21
22
# File 'lib/ruby_omx/request/supplier_item_update_request.rb', line 16

def initialize(attrs={})
  return super unless attrs.any?
raise MissingRequestOptions if attrs[:items].nil?
  super
  self.version = attrs[:version] ||= '1.00'
  self.items = attrs[:items].collect { |h| SupplierItem.new(h) }
end