Class: IngramMicro::InventorySyncDetail
- Inherits:
-
InboundBaseElement
- Object
- InboundBaseElement
- IngramMicro::InventorySyncDetail
- Defined in:
- lib/ingram_micro/inbound_elements/inventory_sync_detail.rb
Instance Attribute Summary
Attributes inherited from InboundBaseElement
Instance Method Summary collapse
Methods inherited from InboundBaseElement
#==, #initialize, #transaction_name
Constructor Details
This class inherits a constructor from IngramMicro::InboundBaseElement
Instance Method Details
#line_items ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/ingram_micro/inbound_elements/inventory_sync_detail.rb', line 3 def line_items if hash['line_item'].is_a?(Array) hash['line_item'].map do |line_item| IngramMicro::InventorySyncLineItem.new(line_item) end else [IngramMicro::InventorySyncLineItem.new(hash['line_item'])] end end |