Module: ActiveMerchant::Shipping::CPPWSErrorResponse

Included in:
CPPWSMerchantDetailsResponse, CPPWSRateResponse, CPPWSRegisterResponse, CPPWSShippingResponse, CPPWSTrackingResponse
Defined in:
lib/active_shipping/shipping/carriers/canada_post_pws.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#error_codeObject

Returns the value of attribute error_code.



768
769
770
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 768

def error_code
  @error_code
end

Instance Method Details

#handle_error(message, options) ⇒ Object



769
770
771
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 769

def handle_error(message, options)
  @error_code = options[:code]
end