Class: Fedex::Request::Document
- Defined in:
- lib/fedex/request/document.rb
Instance Method Summary collapse
- #add_custom_components(xml) ⇒ Object
-
#initialize(credentials, options = {}) ⇒ Document
constructor
A new instance of Document.
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, ={}) super(credentials, ) @shipping_document = [:shipping_document] @filenames = .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 |