Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptionsFuelPrice
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptionsFuelPrice
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/places_v1/classes.rb,
lib/google/apis/places_v1/representations.rb,
lib/google/apis/places_v1/representations.rb
Overview
Fuel price information for a given type.
Instance Attribute Summary collapse
-
#price ⇒ Google::Apis::PlacesV1::GoogleTypeMoney
Represents an amount of money with its currency type.
-
#type ⇒ String
The type of fuel.
-
#update_time ⇒ String
The time the fuel price was last updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1FuelOptionsFuelPrice
constructor
A new instance of GoogleMapsPlacesV1FuelOptionsFuelPrice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1FuelOptionsFuelPrice
Returns a new instance of GoogleMapsPlacesV1FuelOptionsFuelPrice.
896 897 898 |
# File 'lib/google/apis/places_v1/classes.rb', line 896 def initialize(**args) update!(**args) end |
Instance Attribute Details
#price ⇒ Google::Apis::PlacesV1::GoogleTypeMoney
Represents an amount of money with its currency type.
Corresponds to the JSON property price
884 885 886 |
# File 'lib/google/apis/places_v1/classes.rb', line 884 def price @price end |
#type ⇒ String
The type of fuel.
Corresponds to the JSON property type
889 890 891 |
# File 'lib/google/apis/places_v1/classes.rb', line 889 def type @type end |
#update_time ⇒ String
The time the fuel price was last updated.
Corresponds to the JSON property updateTime
894 895 896 |
# File 'lib/google/apis/places_v1/classes.rb', line 894 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
901 902 903 904 905 |
# File 'lib/google/apis/places_v1/classes.rb', line 901 def update!(**args) @price = args[:price] if args.key?(:price) @type = args[:type] if args.key?(:type) @update_time = args[:update_time] if args.key?(:update_time) end |