Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1EvChargeOptions

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

Information about the EV Charge Station hosted in Place. Terminology follows https://afdc.energy.gov/fuels/electricity_infrastructure.html One port could charge one car at a time. One port has one or more connectors. One station has one or more ports.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1EvChargeOptions

Returns a new instance of GoogleMapsPlacesV1EvChargeOptions.



938
939
940
# File 'lib/google/apis/places_v1/classes.rb', line 938

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

Instance Attribute Details

#connector_aggregationArray<Google::Apis::PlacesV1::GoogleMapsPlacesV1EvChargeOptionsConnectorAggregation>

A list of EV charging connector aggregations that contain connectors of the same type and same charge rate. Corresponds to the JSON property connectorAggregation



928
929
930
# File 'lib/google/apis/places_v1/classes.rb', line 928

def connector_aggregation
  @connector_aggregation
end

#connector_countFixnum

Number of connectors at this station. However, because some ports can have multiple connectors but only be able to charge one car at a time (e.g.) the number of connectors may be greater than the total number of cars which can charge simultaneously. Corresponds to the JSON property connectorCount

Returns:

  • (Fixnum)


936
937
938
# File 'lib/google/apis/places_v1/classes.rb', line 936

def connector_count
  @connector_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



943
944
945
946
# File 'lib/google/apis/places_v1/classes.rb', line 943

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