Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptionsFuelPrice

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1FuelOptionsFuelPrice

Returns a new instance of GoogleMapsPlacesV1FuelOptionsFuelPrice.



1027
1028
1029
# File 'lib/google/apis/places_v1/classes.rb', line 1027

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#priceGoogle::Apis::PlacesV1::GoogleTypeMoney

Represents an amount of money with its currency type. Corresponds to the JSON property price



1015
1016
1017
# File 'lib/google/apis/places_v1/classes.rb', line 1015

def price
  @price
end

#typeString

The type of fuel. Corresponds to the JSON property type

Returns:

  • (String)


1020
1021
1022
# File 'lib/google/apis/places_v1/classes.rb', line 1020

def type
  @type
end

#update_timeString

The time the fuel price was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1025
1026
1027
# File 'lib/google/apis/places_v1/classes.rb', line 1025

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1032
1033
1034
1035
1036
# File 'lib/google/apis/places_v1/classes.rb', line 1032

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