Class: Uber::Estimates::ResponseTypes::BaseResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/uber/estimates/response_types/base_response.rb

Direct Known Subclasses

Price, Time

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_hash) ⇒ BaseResponse

Returns a new instance of BaseResponse.



7
8
9
10
11
# File 'lib/uber/estimates/response_types/base_response.rb', line 7

def initialize(raw_hash)
  @localized_display_name = raw_hash['localized_display_name']
  @display_name = raw_hash['display_name']
  @product_id = raw_hash['product_id']
end

Instance Attribute Details

#display_nameObject (readonly)

Returns the value of attribute display_name.



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

def display_name
  @display_name
end

#localized_display_nameObject (readonly)

Returns the value of attribute localized_display_name.



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

def localized_display_name
  @localized_display_name
end

#product_idObject (readonly)

Returns the value of attribute product_id.



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

def product_id
  @product_id
end