Class: IngramMicro::InventorySync

Inherits:
InboundBaseElement show all
Defined in:
lib/ingram_micro/inbound_elements/inventory_sync.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

#detailObject



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

def detail
  detail = @hash['message']['inventory_synchronization']['detail']
  IngramMicro::InventorySyncDetail.new(detail)
end

#inventory_statusObject



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

def inventory_status
  @hash['message']['inventory_synchronization']
end

#message_headerObject



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

def message_header
  @hash['message']['message_header']
end