Class: Shippinglogic::FedEx::Cancel
- Defined in:
- lib/shippinglogic/fedex/cancel.rb
Overview
An interface to the shipment canceling service provided by FedEx. Allows you to cancel a shipment
Accessor methods / options
-
tracking_number
- the tracking number -
deletion_control
- one of Enumerations::DELETION_CONTROL (default: DELETE_ALL_PACKAGES)
Simple Example
fedex = Shippinglogic::FedEx.new(key, password, account, meter)
cancel = fedex.cancel(:tracking_number => "my number")
cancel.perform
# => true
Constant Summary collapse
- VERSION =
{:major => 6, :intermediate => 0, :minor => 0}
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
-
#perform ⇒ Object
Our services are set up as a proxy.
Methods inherited from Service
Methods included from Validation
Methods included from Attributes
Methods inherited from Proxy
Constructor Details
This class inherits a constructor from Shippinglogic::Service
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Shippinglogic::Proxy
Instance Method Details
#perform ⇒ Object
Our services are set up as a proxy. We need to access the underlying object, to trigger the request to fedex. So calling this method is a way to do that since there really is no underlying object
24 25 26 |
# File 'lib/shippinglogic/fedex/cancel.rb', line 24 def perform target && true end |