Class: SimpleShipping::Ups::Request
- Inherits:
-
Abstract::Request
- Object
- Abstract::Request
- SimpleShipping::Ups::Request
- Defined in:
- lib/simple_shipping/ups/request.rb
Overview
Builds complete request for UPS
Direct Known Subclasses
ShipAcceptRequest, ShipConfirmRequest, ShipmentRequest, VoidRequest
Constant Summary collapse
- REQUEST_OPTION =
Value for <common:RequestOption> XML element in request.
'nonvalidate'
Instance Attribute Summary
Attributes inherited from Abstract::Request
Instance Method Summary collapse
-
#label_specification ⇒ Hash
Define label parameters according to UPS’s API.
Methods inherited from Abstract::Request
Constructor Details
This class inherits a constructor from SimpleShipping::Abstract::Request
Instance Method Details
#label_specification ⇒ Hash
Define label parameters according to UPS’s API.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/simple_shipping/ups/request.rb', line 10 def label_specification { 'LabelImageFormat' => {'Code' => 'GIF'}, 'LabelStockSize' => { 'Height' => '6', 'Width' => '4', :order! => ['Height', 'Width'] }, :order! => ['LabelImageFormat', 'LabelStockSize'] } end |