Class: ActiveMerchant::Shipping::VoidShipmentResponse
- Defined in:
- lib/active_shipping/shipping/void_shipment_response.rb
Instance Attribute Summary collapse
-
#package_level_results ⇒ Object
readonly
Returns the value of attribute package_level_results.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
-
#status_type ⇒ Object
readonly
Returns the value of attribute status_type.
Attributes inherited from Response
#message, #params, #request, #test, #xml
Instance Method Summary collapse
-
#initialize(success, message, params = {}, options = {}) ⇒ VoidShipmentResponse
constructor
A new instance of VoidShipmentResponse.
Methods inherited from Response
Constructor Details
#initialize(success, message, params = {}, options = {}) ⇒ VoidShipmentResponse
Returns a new instance of VoidShipmentResponse.
10 11 12 13 14 15 16 |
# File 'lib/active_shipping/shipping/void_shipment_response.rb', line 10 def initialize(success, , params = {}, = {}) @package_level_results = [] @status_type = [:status_type] @status_code = [:status_code] [:package_level_results].each{ |result| @package_level_results << result } unless [:package_level_results].blank? super end |
Instance Attribute Details
#package_level_results ⇒ Object (readonly)
Returns the value of attribute package_level_results.
8 9 10 |
# File 'lib/active_shipping/shipping/void_shipment_response.rb', line 8 def package_level_results @package_level_results end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
6 7 8 |
# File 'lib/active_shipping/shipping/void_shipment_response.rb', line 6 def status_code @status_code end |
#status_type ⇒ Object (readonly)
Returns the value of attribute status_type.
7 8 9 |
# File 'lib/active_shipping/shipping/void_shipment_response.rb', line 7 def status_type @status_type end |