Class: ActiveMerchant::Shipping::ShipmentAcceptResponse
- Defined in:
- lib/active_shipping/shipping/shipment_accept_response.rb
Instance Attribute Summary collapse
-
#billing_weight ⇒ Object
readonly
Returns the value of attribute billing_weight.
-
#currency_code ⇒ Object
readonly
Returns the value of attribute currency_code.
-
#high_value_report_image ⇒ Object
readonly
Returns the value of attribute high_value_report_image.
-
#high_value_report_image_format ⇒ Object
readonly
Returns the value of attribute high_value_report_image_format.
-
#identification_number ⇒ Object
readonly
Returns the value of attribute identification_number.
-
#shipment_charges ⇒ Object
readonly
Returns the value of attribute shipment_charges.
-
#shipment_packages ⇒ Object
readonly
Returns the value of attribute shipment_packages.
-
#weight_unit ⇒ Object
readonly
Returns the value of attribute weight_unit.
Attributes inherited from Response
#message, #params, #request, #test, #xml
Instance Method Summary collapse
-
#initialize(success, message, params = {}, options = {}) ⇒ ShipmentAcceptResponse
constructor
A new instance of ShipmentAcceptResponse.
Methods inherited from Response
Constructor Details
#initialize(success, message, params = {}, options = {}) ⇒ ShipmentAcceptResponse
Returns a new instance of ShipmentAcceptResponse.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 15 def initialize(success, , params = {}, = {}) @shipment_packages = [] @identification_number = [:identification_number] @shipment_charges = [:shipment_charges] @currency_code = [:currency_code] @billing_weight = [:billing_weight] @weight_unit = [:weight_unit] unless [:high_value_report_image].blank? @high_value_report_image = [:high_value_report_image] @high_value_report_image_format = [:high_value_report_image_format] || "HTML" end [:shipment_packages].each{ |package| @shipment_packages << package } super end |
Instance Attribute Details
#billing_weight ⇒ Object (readonly)
Returns the value of attribute billing_weight.
8 9 10 |
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 8 def billing_weight @billing_weight end |
#currency_code ⇒ Object (readonly)
Returns the value of attribute currency_code.
10 11 12 |
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 10 def currency_code @currency_code end |
#high_value_report_image ⇒ Object (readonly)
Returns the value of attribute high_value_report_image.
12 13 14 |
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 12 def high_value_report_image @high_value_report_image end |
#high_value_report_image_format ⇒ Object (readonly)
Returns the value of attribute high_value_report_image_format.
13 14 15 |
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 13 def high_value_report_image_format @high_value_report_image_format end |
#identification_number ⇒ Object (readonly)
Returns the value of attribute identification_number.
7 8 9 |
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 7 def identification_number @identification_number end |
#shipment_charges ⇒ Object (readonly)
Returns the value of attribute shipment_charges.
6 7 8 |
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 6 def shipment_charges @shipment_charges end |
#shipment_packages ⇒ Object (readonly)
Returns the value of attribute shipment_packages.
11 12 13 |
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 11 def shipment_packages @shipment_packages end |
#weight_unit ⇒ Object (readonly)
Returns the value of attribute weight_unit.
9 10 11 |
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 9 def weight_unit @weight_unit end |