Class: ActiveMerchant::Shipping::CPPWSShippingResponse

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

Instance Attribute Summary collapse

Attributes included from CPPWSErrorResponse

#error_code

Attributes inherited from ShippingResponse

#shipping_id, #tracking_number

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 = {}) ⇒ CPPWSShippingResponse

Returns a new instance of CPPWSShippingResponse


832
833
834
835
836
837
838
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 832

def initialize(success, message, params = {}, options = {})
  handle_error(message, options)
  super
  @label_url      = options[:label_url]
  @details_url    = options[:details_url]
  @receipt_url    = options[:receipt_url]
end

Instance Attribute Details

#details_urlObject (readonly)

Returns the value of attribute details_url


831
832
833
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 831

def details_url
  @details_url
end

#label_urlObject (readonly)

Returns the value of attribute label_url


831
832
833
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 831

def label_url
  @label_url
end

#receipt_urlObject (readonly)

Returns the value of attribute receipt_url


831
832
833
# File 'lib/active_shipping/shipping/carriers/canada_post_pws.rb', line 831

def receipt_url
  @receipt_url
end