Class: SimpleShipping::Fedex::ShipmentRequest

Inherits:
Request show all
Defined in:
lib/simple_shipping/fedex/shipment_request.rb

Overview

The model that represents shipment request to FedEx.

Instance Attribute Summary

Attributes inherited from Abstract::Request

#credentials, #type

Instance Method Summary collapse

Methods inherited from Request

#body

Methods inherited from Abstract::Request

#response

Constructor Details

#initialize(credentials, shipment) ⇒ ShipmentRequest

Returns a new instance of ShipmentRequest.



4
5
6
7
# File 'lib/simple_shipping/fedex/shipment_request.rb', line 4

def initialize(credentials, shipment)
  super
  @type = :process_shipment
end

Instance Method Details

#response_classObject

:nodoc:



10
11
12
# File 'lib/simple_shipping/fedex/shipment_request.rb', line 10

def response_class
  ShipmentResponse
end