Class: ActiveMerchant::Shipping::CPPWSRateResponse

Inherits:
RateResponse show all
Includes:
CPPWSErrorResponse
Defined in:
lib/active_shipping/shipping/carriers/canada_post_pws.rb

Instance Attribute Summary

Attributes included from CPPWSErrorResponse

#error_code

Attributes inherited from RateResponse

#rates

Attributes inherited from Response

#message, #params, #request, #test, #xml

Instance Method Summary collapse

Methods included from CPPWSErrorResponse

#handle_error

Methods inherited from Response

#success?, #test?

Constructor Details

#initialize(success, message, params = {}, options = {}) ⇒ CPPWSRateResponse

Returns a new instance of CPPWSRateResponse


792
793
794
795
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 792

def initialize(success, message, params = {}, options = {})
  handle_error(message, options)
  super
end