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.



794
795
796
# File 'lib/google/apis/places_v1/classes.rb', line 794

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



784
785
786
# File 'lib/google/apis/places_v1/classes.rb', line 784

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)


792
793
794
# File 'lib/google/apis/places_v1/classes.rb', line 792

def connector_count
  @connector_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



799
800
801
802
# File 'lib/google/apis/places_v1/classes.rb', line 799

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