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.



1040
1041
1042
# File 'lib/google/apis/places_v1/classes.rb', line 1040

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



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

def price
  @price
end

#typeString

The type of fuel. Corresponds to the JSON property type

Returns:

  • (String)


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

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


1038
1039
1040
# File 'lib/google/apis/places_v1/classes.rb', line 1038

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1045
1046
1047
1048
1049
# File 'lib/google/apis/places_v1/classes.rb', line 1045

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