Class: ReactiveShipping::CanadaPost::CanadaPostRateResponse
- Inherits:
-
RateResponse
- Object
- Response
- RateResponse
- ReactiveShipping::CanadaPost::CanadaPostRateResponse
- Defined in:
- lib/reactive_shipping/carriers/canada_post.rb
Overview
NOTE! A Merchant CPC Id must be assigned to you by Canada Post CPC_DEMO_XML is just a public domain account for testing
Instance Attribute Summary collapse
-
#boxes ⇒ Object
readonly
Returns the value of attribute boxes.
-
#postal_outlets ⇒ Object
readonly
Returns the value of attribute postal_outlets.
Attributes inherited from RateResponse
Attributes inherited from Response
#message, #params, #request, #test, #xml
Instance Method Summary collapse
-
#initialize(success, message, params = {}, options = {}) ⇒ CanadaPostRateResponse
constructor
A new instance of CanadaPostRateResponse.
Methods inherited from Response
Constructor Details
#initialize(success, message, params = {}, options = {}) ⇒ CanadaPostRateResponse
Returns a new instance of CanadaPostRateResponse.
10 11 12 13 14 |
# File 'lib/reactive_shipping/carriers/canada_post.rb', line 10 def initialize(success, , params = {}, = {}) @boxes = [:boxes] @postal_outlets = [:postal_outlets] super end |
Instance Attribute Details
#boxes ⇒ Object (readonly)
Returns the value of attribute boxes.
8 9 10 |
# File 'lib/reactive_shipping/carriers/canada_post.rb', line 8 def boxes @boxes end |
#postal_outlets ⇒ Object (readonly)
Returns the value of attribute postal_outlets.
8 9 10 |
# File 'lib/reactive_shipping/carriers/canada_post.rb', line 8 def postal_outlets @postal_outlets end |