Class: ActiveMerchant::Shipping::CPPWSTrackingResponse
- Inherits:
-
TrackingResponse
- Object
- Response
- TrackingResponse
- ActiveMerchant::Shipping::CPPWSTrackingResponse
- Includes:
- CPPWSErrorResponse
- Defined in:
- lib/active_shipping/shipping/carriers/canada_post_pws.rb
Instance Attribute Summary collapse
-
#change_reason ⇒ Object
readonly
Returns the value of attribute change_reason.
-
#changed_date ⇒ Object
readonly
Returns the value of attribute changed_date.
-
#customer_number ⇒ Object
readonly
Returns the value of attribute customer_number.
-
#expected_date ⇒ Object
readonly
Returns the value of attribute expected_date.
-
#service_name ⇒ Object
readonly
Returns the value of attribute service_name.
Attributes included from CPPWSErrorResponse
Attributes inherited from TrackingResponse
#actual_delivery_date, #carrier, #carrier_name, #delivery_signature, #destination, #origin, #scheduled_delivery_date, #ship_time, #shipment_events, #shipper_address, #status, #status_code, #status_description, #tracking_number
Attributes inherited from Response
#message, #params, #request, #test, #xml
Instance Method Summary collapse
-
#initialize(success, message, params = {}, options = {}) ⇒ CPPWSTrackingResponse
constructor
A new instance of CPPWSTrackingResponse.
Methods included from CPPWSErrorResponse
Methods inherited from TrackingResponse
#has_exception?, #is_delivered?, #latest_event
Methods inherited from Response
Constructor Details
#initialize(success, message, params = {}, options = {}) ⇒ CPPWSTrackingResponse
Returns a new instance of CPPWSTrackingResponse.
788 789 790 791 792 793 794 795 796 |
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 788 def initialize(success, , params = {}, = {}) handle_error(, ) super @service_name = [:service_name] @expected_date = [:expected_date] @changed_date = [:changed_date] @change_reason = [:change_reason] @customer_number = [:customer_number] end |
Instance Attribute Details
#change_reason ⇒ Object (readonly)
Returns the value of attribute change_reason.
786 787 788 |
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 786 def change_reason @change_reason end |
#changed_date ⇒ Object (readonly)
Returns the value of attribute changed_date.
786 787 788 |
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 786 def changed_date @changed_date end |
#customer_number ⇒ Object (readonly)
Returns the value of attribute customer_number.
786 787 788 |
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 786 def customer_number @customer_number end |
#expected_date ⇒ Object (readonly)
Returns the value of attribute expected_date.
786 787 788 |
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 786 def expected_date @expected_date end |
#service_name ⇒ Object (readonly)
Returns the value of attribute service_name.
786 787 788 |
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 786 def service_name @service_name end |