Class: RubyOmx::SupplierItemUpdateRequest
- Defined in:
- lib/ruby_omx/request/supplier_item_update_request.rb
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ SupplierItemUpdateRequest
constructor
A new instance of SupplierItemUpdateRequest.
Methods inherited from Response
Methods inherited from Node
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 |