Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestEvOptions

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

Searchable EV options of a place search request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1SearchTextRequestEvOptions

Returns a new instance of GoogleMapsPlacesV1SearchTextRequestEvOptions.



2349
2350
2351
# File 'lib/google/apis/places_v1/classes.rb', line 2349

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

Instance Attribute Details

#connector_typesArray<String>

Optional. The list of preferred EV connector types. A place that does not support any of the listed connector types is filtered out. Corresponds to the JSON property connectorTypes

Returns:

  • (Array<String>)


2341
2342
2343
# File 'lib/google/apis/places_v1/classes.rb', line 2341

def connector_types
  @connector_types
end

#minimum_charging_rate_kwFloat

Optional. Minimum required charging rate in kilowatts. A place with a charging rate less than the specified rate is filtered out. Corresponds to the JSON property minimumChargingRateKw

Returns:

  • (Float)


2347
2348
2349
# File 'lib/google/apis/places_v1/classes.rb', line 2347

def minimum_charging_rate_kw
  @minimum_charging_rate_kw
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2354
2355
2356
2357
# File 'lib/google/apis/places_v1/classes.rb', line 2354

def update!(**args)
  @connector_types = args[:connector_types] if args.key?(:connector_types)
  @minimum_charging_rate_kw = args[:minimum_charging_rate_kw] if args.key?(:minimum_charging_rate_kw)
end