Class: Fedex::Request::Document

Inherits:
Shipment show all
Defined in:
lib/fedex/request/document.rb

Constant Summary

Constants inherited from Base

Base::CARRIER_CODES, Base::CLEARANCE_BROKERAGE_TYPE, Base::DROP_OFF_TYPES, Base::PACKAGING_TYPES, Base::PAYMENT_TYPE, Base::PRODUCTION_URL, Base::RECIPIENT_CUSTOM_ID_TYPE, Base::SERVICE_TYPES, Base::TEST_URL

Instance Attribute Summary

Attributes inherited from Shipment

#response_details

Attributes inherited from Base

#debug

Instance Method Summary collapse

Methods inherited from Shipment

#process_request

Methods inherited from Base

#process_request

Constructor Details

#initialize(credentials, options = {}) ⇒ Document


8
9
10
11
12
13
# File 'lib/fedex/request/document.rb', line 8

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

  @shipping_document = options[:shipping_document]
  @filenames = options.fetch(:filenames) { {} }
end

Instance Method Details

#add_custom_components(xml) ⇒ Object


15
16
17
18
19
# File 'lib/fedex/request/document.rb', line 15

def add_custom_components(xml)
  super

  add_shipping_document(xml) if @shipping_document
end