Class: ReactiveShipping::CPPWSShippingResponse
- Inherits:
-
ShippingResponse
- Object
- Response
- ShippingResponse
- ReactiveShipping::CPPWSShippingResponse
- Includes:
- CPPWSErrorResponse
- Defined in:
- lib/reactive_shipping/carriers/canada_post_pws.rb
Instance Attribute Summary collapse
-
#details_url ⇒ Object
readonly
Returns the value of attribute details_url.
-
#label_url ⇒ Object
readonly
Returns the value of attribute label_url.
-
#receipt_url ⇒ Object
readonly
Returns the value of attribute receipt_url.
Attributes included from CPPWSErrorResponse
Attributes inherited from ShippingResponse
#shipping_id, #tracking_number
Attributes inherited from Response
#message, #params, #request, #test, #xml
Instance Method Summary collapse
-
#initialize(success, message, params = {}, options = {}) ⇒ CPPWSShippingResponse
constructor
A new instance of CPPWSShippingResponse.
Methods included from CPPWSErrorResponse
Methods inherited from Response
Constructor Details
#initialize(success, message, params = {}, options = {}) ⇒ CPPWSShippingResponse
Returns a new instance of CPPWSShippingResponse.
867 868 869 870 871 872 873 |
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 867 def initialize(success, , params = {}, = {}) handle_error(, ) super @label_url = [:label_url] @details_url = [:details_url] @receipt_url = [:receipt_url] end |
Instance Attribute Details
#details_url ⇒ Object (readonly)
Returns the value of attribute details_url.
866 867 868 |
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 866 def details_url @details_url end |
#label_url ⇒ Object (readonly)
Returns the value of attribute label_url.
866 867 868 |
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 866 def label_url @label_url end |
#receipt_url ⇒ Object (readonly)
Returns the value of attribute receipt_url.
866 867 868 |
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 866 def receipt_url @receipt_url end |