Class: ActiveMerchant::Shipping::NewZealandPost::NewZealandPostRateResponse

Inherits:
RateResponse show all
Defined in:
lib/active_shipping/shipping/carriers/new_zealand_post.rb

Instance Attribute Summary collapse

Attributes inherited from RateResponse

#rates

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

Returns a new instance of NewZealandPostRateResponse


39
40
41
42
# File 'lib/active_shipping/shipping/carriers/new_zealand_post.rb', line 39

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

Instance Attribute Details

#raw_responsesObject (readonly)

Returns the value of attribute raw_responses


37
38
39
# File 'lib/active_shipping/shipping/carriers/new_zealand_post.rb', line 37

def raw_responses
  @raw_responses
end