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.



896
897
898
# File 'lib/google/apis/places_v1/classes.rb', line 896

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



884
885
886
# File 'lib/google/apis/places_v1/classes.rb', line 884

def price
  @price
end

#typeString

The type of fuel. Corresponds to the JSON property type

Returns:

  • (String)


889
890
891
# File 'lib/google/apis/places_v1/classes.rb', line 889

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


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