Class: Fedex::Request::Document

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

Instance Method Summary collapse

Methods inherited from Shipment

#delete, #document, #ground_close, #label, #pickup, #pickup_availability, #rate, #service_availability, #ship, #track, #validate_address

Constructor Details

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

Returns a new instance of 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