Class: IngramMicro::OutboundPurchaseOrderInformation

Inherits:
BaseElement
  • Object
show all
Defined in:
lib/ingram_micro/elements/outbound_purchase_order_information.rb

Constant Summary collapse

DEFAULTS =
{
  purchase_order_number: nil,
  account_description: nil,
  purchase_order_amount: 0.0,
  purchase_order_event: nil,
  currency_code: nil,
  comments: nil
}

Instance Attribute Summary

Attributes inherited from BaseElement

#element

Instance Method Summary collapse

Methods inherited from BaseElement

#build, format

Constructor Details

#initialize(options = {}) ⇒ OutboundPurchaseOrderInformation

Returns a new instance of OutboundPurchaseOrderInformation.



11
12
13
14
15
16
# File 'lib/ingram_micro/elements/outbound_purchase_order_information.rb', line 11

def initialize(options = {})
  super(options)

  # customer_id is always set by BaseElement, but we don't need it here
  self.element.delete(:customer_id)
end

Instance Method Details

#defaultsObject



18
19
20
# File 'lib/ingram_micro/elements/outbound_purchase_order_information.rb', line 18

def defaults
  DEFAULTS
end