Class: IngramMicro::InventorySyncLineItem

Inherits:
InboundBaseElement show all
Defined in:
lib/ingram_micro/inbound_elements/inventory_sync_line_item.rb

Instance Attribute Summary

Attributes inherited from InboundBaseElement

#hash

Instance Method Summary collapse

Methods inherited from InboundBaseElement

#==, #initialize, #transaction_name

Constructor Details

This class inherits a constructor from IngramMicro::InboundBaseElement

Instance Method Details

#item_codeObject



11
12
13
# File 'lib/ingram_micro/inbound_elements/inventory_sync_line_item.rb', line 11

def item_code
  hash['item_code']
end

#line_noObject



3
4
5
# File 'lib/ingram_micro/inbound_elements/inventory_sync_line_item.rb', line 3

def line_no
  hash['line_no'].to_i
end

#quantity_availableObject



35
36
37
# File 'lib/ingram_micro/inbound_elements/inventory_sync_line_item.rb', line 35

def quantity_available
  hash['quantity_available'].to_i
end

#quantity_committedObject



31
32
33
# File 'lib/ingram_micro/inbound_elements/inventory_sync_line_item.rb', line 31

def quantity_committed
  hash['quantity_committed'].to_i
end

#quantity_on_back_orderObject



39
40
41
# File 'lib/ingram_micro/inbound_elements/inventory_sync_line_item.rb', line 39

def quantity_on_back_order
  hash['quantity_on_back_order'].to_i
end

#quantity_on_handObject



27
28
29
# File 'lib/ingram_micro/inbound_elements/inventory_sync_line_item.rb', line 27

def quantity_on_hand
  hash['quantity_on_hand'].to_i
end

#synchronization_timestampObject



43
44
45
# File 'lib/ingram_micro/inbound_elements/inventory_sync_line_item.rb', line 43

def synchronization_timestamp
  hash['synchronization_timestamp'].to_i
end

#transaction_document_numberObject



7
8
9
# File 'lib/ingram_micro/inbound_elements/inventory_sync_line_item.rb', line 7

def transaction_document_number
  hash['transaction_document_number']
end

#unit_of_measureObject



23
24
25
# File 'lib/ingram_micro/inbound_elements/inventory_sync_line_item.rb', line 23

def unit_of_measure
  hash['unit_of_measure']
end

#universal_product_codeObject



15
16
17
# File 'lib/ingram_micro/inbound_elements/inventory_sync_line_item.rb', line 15

def universal_product_code
  hash['universal_product_code'].to_i
end

#warehouse_idObject



19
20
21
# File 'lib/ingram_micro/inbound_elements/inventory_sync_line_item.rb', line 19

def warehouse_id
  hash['warehouse_id']
end