Class: ReactiveShipping::CPPWSShippingResponse

Inherits:
ShippingResponse show all
Includes:
CPPWSErrorResponse
Defined in:
lib/reactive_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.



867
868
869
870
871
872
873
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 867

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.



866
867
868
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 866

def details_url
  @details_url
end

#label_urlObject (readonly)

Returns the value of attribute label_url.



866
867
868
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 866

def label_url
  @label_url
end

#receipt_urlObject (readonly)

Returns the value of attribute receipt_url.



866
867
868
# File 'lib/reactive_shipping/carriers/canada_post_pws.rb', line 866

def receipt_url
  @receipt_url
end