Class: Uber::Estimates::ResponseTypes::Time
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- Uber::Estimates::ResponseTypes::Time
- Defined in:
- lib/uber/estimates/response_types/time.rb
Instance Attribute Summary collapse
-
#estimate ⇒ Object
readonly
Returns the value of attribute estimate.
Attributes inherited from BaseResponse
#display_name, #localized_display_name, #product_id
Instance Method Summary collapse
-
#initialize(raw_hash) ⇒ Time
constructor
A new instance of Time.
Constructor Details
#initialize(raw_hash) ⇒ Time
Returns a new instance of Time.
7 8 9 10 |
# File 'lib/uber/estimates/response_types/time.rb', line 7 def initialize(raw_hash) super(raw_hash) @estimate = raw_hash['estimate'] end |
Instance Attribute Details
#estimate ⇒ Object (readonly)
Returns the value of attribute estimate.
5 6 7 |
# File 'lib/uber/estimates/response_types/time.rb', line 5 def estimate @estimate end |