Class: Shippinglogic::FedEx::Cancel

Inherits:
Service show all
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, , meter)
cancel = fedex.cancel(:tracking_number => "my number")
cancel.perform
# => true

Constant Summary

VERSION =
{:major => 6, :intermediate => 0, :minor => 0}

Instance Attribute Summary

Attributes inherited from Service

#base

Instance Method Summary (collapse)

Methods inherited from Service

#initialize

Methods included from Validation

#errors, #valid?

Methods included from Attributes

included

Methods inherited from Proxy

#initialize

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

- (Object) perform

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