class Google::Apis::CivicinfoV2::PollingLocation

A location where a voter can vote. This may be an early vote site, an election day voting location, or a drop off location for a completed ballot.

Attributes

address[RW]

A simple representation of an address. Corresponds to the JSON property `address` @return [Google::Apis::CivicinfoV2::SimpleAddressType]

end_date[RW]

The last date that this early vote site or drop off location may be used. This field is not populated for polling locations. Corresponds to the JSON property `endDate` @return [String]

id[RW]

An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page. Corresponds to the JSON property `id` @return [String]

name[RW]

The name of the early vote site or drop off location. This field is not populated for polling locations. Corresponds to the JSON property `name` @return [String]

notes[RW]

Notes about this location (e.g. accessibility ramp or entrance to use). Corresponds to the JSON property `notes` @return [String]

polling_hours[RW]

A description of when this location is open. Corresponds to the JSON property `pollingHours` @return [String]

sources[RW]

A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources. Corresponds to the JSON property `sources` @return [Array<Google::Apis::CivicinfoV2::Source>]

start_date[RW]

The first date that this early vote site or drop off location may be used. This field is not populated for polling locations. Corresponds to the JSON property `startDate` @return [String]

voter_services[RW]

The services provided by this early vote site or drop off location. This field is not populated for polling locations. Corresponds to the JSON property `voterServices` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/civicinfo_v2/classes.rb, line 860
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/civicinfo_v2/classes.rb, line 865
def update!(**args)
  @address = args[:address] if args.key?(:address)
  @end_date = args[:end_date] if args.key?(:end_date)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @notes = args[:notes] if args.key?(:notes)
  @polling_hours = args[:polling_hours] if args.key?(:polling_hours)
  @sources = args[:sources] if args.key?(:sources)
  @start_date = args[:start_date] if args.key?(:start_date)
  @voter_services = args[:voter_services] if args.key?(:voter_services)
end