Class: Omniship::RateResponse
- Defined in:
- lib/omniship/rate_response.rb
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.
6 7 8 9 |
# File 'lib/omniship/rate_response.rb', line 6 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.
4 5 6 |
# File 'lib/omniship/rate_response.rb', line 4 def rates @rates end |