Class: ActiveMerchant::Shipping::ReturnShipment
- Defined in:
- lib/active_shipping/shipping/return_shipment.rb
Constant Summary
Constants inherited from Shipment
Shipment::FEDEX_DROPOFF_TYPES, Shipment::FEDEX_PAYMENT_TYPES, Shipment::FEDEX_RATE_REQUEST_TYPES
Instance Attribute Summary collapse
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
-
#rma_number ⇒ Object
Returns the value of attribute rma_number.
Attributes inherited from Shipment
#dropoff_type, #label, #package_count, #packaging_type, #payment_type, #payor_account_country, #payor_account_number, #rate_request_type, #recipient, #requested_packages, #service, #ship_at, #shipper, #special_services, #total_insured_amount, #total_insured_currency, #total_weight_units, #total_weight_value, #tracking_number, #transit_time
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ ReturnShipment
constructor
A new instance of ReturnShipment.
Methods included from ActiveMerchant::Shipping
Constructor Details
#initialize(opts = {}) ⇒ ReturnShipment
Returns a new instance of ReturnShipment.
6 7 8 9 10 11 |
# File 'lib/active_shipping/shipping/return_shipment.rb', line 6 def initialize(opts = {}) super self.rma_number = opts[:rma_number] self.payment_type ||= 'RECIPIENT' @return_type = opts[:return_type] || 'PRINT_RETURN_LABEL' end |
Instance Attribute Details
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type.
5 6 7 |
# File 'lib/active_shipping/shipping/return_shipment.rb', line 5 def return_type @return_type end |
#rma_number ⇒ Object
Returns the value of attribute rma_number.
4 5 6 |
# File 'lib/active_shipping/shipping/return_shipment.rb', line 4 def rma_number @rma_number end |