Class: Uber::Estimates::ResponseTypes::Time

Inherits:
BaseResponse show all
Defined in:
lib/uber/estimates/response_types/time.rb

Instance Attribute Summary collapse

Attributes inherited from BaseResponse

#display_name, #localized_display_name, #product_id

Instance Method Summary collapse

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

#estimateObject (readonly)

Returns the value of attribute estimate.



5
6
7
# File 'lib/uber/estimates/response_types/time.rb', line 5

def estimate
  @estimate
end