Class: ActiveMerchant::Shipping::RateResponse
- Defined in:
- lib/active_shipping/shipping/rate_response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#rates ⇒ Object
(also: #estimates, #rate_estimates)
readonly
Returns the value of attribute rates.
Attributes inherited from Response
#message, #params, #request, #test, #xml
Instance Method Summary collapse
-
#initialize(success, message, params = {}, options = {}) ⇒ RateResponse
constructor
A new instance of RateResponse.
Methods inherited from Response
Constructor Details
#initialize(success, message, params = {}, options = {}) ⇒ RateResponse
Returns a new instance of RateResponse.
8 9 10 11 |
# File 'lib/active_shipping/shipping/rate_response.rb', line 8 def initialize(success, , params = {}, = {}) @rates = Array([:estimates] || [:rates] || [:rate_estimates]) super end |
Instance Attribute Details
#rates ⇒ Object (readonly) Also known as: estimates, rate_estimates
Returns the value of attribute rates.
6 7 8 |
# File 'lib/active_shipping/shipping/rate_response.rb', line 6 def rates @rates end |