Class: ActiveMerchant::Shipping::CanadaPost::CanadaPostRateResponse
- Inherits:
-
RateResponse
- Object
- Response
- RateResponse
- ActiveMerchant::Shipping::CanadaPost::CanadaPostRateResponse
- Defined in:
- lib/active_shipping/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.
16 17 18 19 20 |
# File 'lib/active_shipping/shipping/carriers/canada_post.rb', line 16 def initialize(success, , params = {}, = {}) @boxes = [:boxes] @postal_outlets = [:postal_outlets] super end |
Instance Attribute Details
#boxes ⇒ Object (readonly)
Returns the value of attribute boxes.
14 15 16 |
# File 'lib/active_shipping/shipping/carriers/canada_post.rb', line 14 def boxes @boxes end |
#postal_outlets ⇒ Object (readonly)
Returns the value of attribute postal_outlets.
14 15 16 |
# File 'lib/active_shipping/shipping/carriers/canada_post.rb', line 14 def postal_outlets @postal_outlets end |