Class: ActiveMerchant::Shipping::ShippingResponse

Inherits:
Response show all
Defined in:
lib/active_shipping/shipping/shipping_response.rb

Instance Attribute Summary collapse

Attributes inherited from Response

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

Instance Method Summary collapse

Methods inherited from Response

#success?, #test?

Constructor Details

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


7
8
9
10
11
# File 'lib/active_shipping/shipping/shipping_response.rb', line 7

def initialize(success, message, params = {}, options = {})
  @shipping_id = options[:shipping_id]
  @tracking_number = options[:tracking_number]
  super
end

Instance Attribute Details

#shipping_idObject (readonly)

string


4
5
6
# File 'lib/active_shipping/shipping/shipping_response.rb', line 4

def shipping_id
  @shipping_id
end

#tracking_numberObject (readonly)

string


5
6
7
# File 'lib/active_shipping/shipping/shipping_response.rb', line 5

def tracking_number
  @tracking_number
end