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.



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

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



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

def price
  @price
end

#typeString

The type of fuel. Corresponds to the JSON property type

Returns:

  • (String)


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

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


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

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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