Class: ReactiveShipping::DeliveryDateEstimatesResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/reactive_shipping/delivery_date_estimates_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 = {}) ⇒ DeliveryDateEstimatesResponse

Returns a new instance of DeliveryDateEstimatesResponse.



5
6
7
8
# File 'lib/reactive_shipping/delivery_date_estimates_response.rb', line 5

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

Instance Attribute Details

#delivery_estimatesObject (readonly)

Returns the value of attribute delivery_estimates.



3
4
5
# File 'lib/reactive_shipping/delivery_date_estimates_response.rb', line 3

def delivery_estimates
  @delivery_estimates
end