Class: Uber::Estimates::ResponseTypes::BaseResponse
- Inherits:
-
Object
- Object
- Uber::Estimates::ResponseTypes::BaseResponse
- Defined in:
- lib/uber/estimates/response_types/base_response.rb
Instance Attribute Summary collapse
-
#display_name ⇒ Object
readonly
Returns the value of attribute display_name.
-
#localized_display_name ⇒ Object
readonly
Returns the value of attribute localized_display_name.
-
#product_id ⇒ Object
readonly
Returns the value of attribute product_id.
Instance Method Summary collapse
-
#initialize(raw_hash) ⇒ BaseResponse
constructor
A new instance of BaseResponse.
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_name ⇒ Object (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_name ⇒ Object (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_id ⇒ Object (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 |