Class: Fedex::Shipment
- Inherits:
-
Object
- Object
- Fedex::Shipment
- Defined in:
- lib/fedex/shipment.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Shipment
constructor
In order to use Fedex rates API you must first apply for a developer(and later production keys), Visit / Fedex Developer Center for more information about how to obtain your keys.
- #label(options = {}) ⇒ Object
- #rate(options = {}) ⇒ Object
- #ship(options = {}) ⇒ Object
- #track(options = {}) ⇒ Object
- #validate_address(options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Shipment
In order to use Fedex rates API you must first apply for a developer(and later production keys), Visit / Fedex Developer Center for more information about how to obtain your keys. return a Fedex::Shipment object
19 20 21 |
# File 'lib/fedex/shipment.rb', line 19 def initialize(={}) @credentials = Credentials.new() end |
Instance Method Details
#label(options = {}) ⇒ Object
29 30 31 |
# File 'lib/fedex/shipment.rb', line 29 def label( = {}) Request::Label.new(@credentials, ).process_request end |
#rate(options = {}) ⇒ Object
37 38 39 |
# File 'lib/fedex/shipment.rb', line 37 def rate( = {}) Request::Rate.new(@credentials, ).process_request end |
#ship(options = {}) ⇒ Object
50 51 52 |
# File 'lib/fedex/shipment.rb', line 50 def ship( = {}) Request::Shipment.new(@credentials, ).process_request end |
#track(options = {}) ⇒ Object
56 57 58 |
# File 'lib/fedex/shipment.rb', line 56 def track( = {}) Request::TrackingInformation.new(@credentials, ).process_request end |
#validate_address(options = {}) ⇒ Object
42 43 44 |
# File 'lib/fedex/shipment.rb', line 42 def validate_address( = {}) Request::Address.new(@credentials, ).process_request end |