Class: IngramMicro::ShipAdvice
Instance Attribute Summary
#hash
Instance Method Summary
collapse
#==, #initialize, #transaction_name
Instance Method Details
#customer_id ⇒ Object
3
4
5
|
# File 'lib/ingram_micro/inbound_elements/ship_advice.rb', line 3
def customer_id
@hash['message']['ship_advice']['header']['customer_id']
end
|
#detail ⇒ Object
22
23
24
25
|
# File 'lib/ingram_micro/inbound_elements/ship_advice.rb', line 22
def detail
detail_hash = @hash['message']['ship_advice']['detail']
IngramMicro::InboundDetail.new(detail_hash)
end
|
17
18
19
20
|
# File 'lib/ingram_micro/inbound_elements/ship_advice.rb', line 17
def
= @hash['message']['ship_advice']['header']['order_header']
IngramMicro::InboundOrderHeader.new()
end
|
12
13
14
15
|
# File 'lib/ingram_micro/inbound_elements/ship_advice.rb', line 12
def purchase_order_information
purchase_order_information_hash = @hash['message']['ship_advice']['header']['purchase_order_information']
IngramMicro::InboundPurchaseOrderInformation.new(purchase_order_information_hash)
end
|
7
8
9
10
|
# File 'lib/ingram_micro/inbound_elements/ship_advice.rb', line 7
def shipment_information
shipment_information_hash = @hash['message']['ship_advice']['header']['shipment_information']
IngramMicro::InboundShipmentInformation.new(shipment_information_hash)
end
|