Class: Google::Apis::CivicinfoV2::PollingLocation
- Inherits:
-
Object
- Object
- Google::Apis::CivicinfoV2::PollingLocation
- Defined in:
- generated/google/apis/civicinfo_v2/classes.rb,
generated/google/apis/civicinfo_v2/representations.rb,
generated/google/apis/civicinfo_v2/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#address ⇒ Google::Apis::CivicinfoV2::SimpleAddressType
A simple representation of an address.
-
#end_date ⇒ String
The last date that this early vote site or drop off location may be used.
-
#id ⇒ String
An ID for this object.
-
#name ⇒ String
The name of the early vote site or drop off location.
-
#notes ⇒ String
Notes about this location (e.g. accessibility ramp or entrance to use).
-
#polling_hours ⇒ String
A description of when this location is open.
-
#sources ⇒ Array<Google::Apis::CivicinfoV2::Source>
A list of sources for this location.
-
#start_date ⇒ String
The first date that this early vote site or drop off location may be used.
-
#voter_services ⇒ String
The services provided by this early vote site or drop off location.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PollingLocation
constructor
A new instance of PollingLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ PollingLocation
Returns a new instance of PollingLocation
950 951 952 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 950 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ Google::Apis::CivicinfoV2::SimpleAddressType
A simple representation of an address.
Corresponds to the JSON property address
901 902 903 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 901 def address @address end |
#end_date ⇒ String
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
907 908 909 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 907 def end_date @end_date end |
#id ⇒ String
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
914 915 916 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 914 def id @id end |
#name ⇒ String
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
920 921 922 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 920 def name @name end |
#notes ⇒ String
Notes about this location (e.g. accessibility ramp or entrance to use).
Corresponds to the JSON property notes
925 926 927 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 925 def notes @notes end |
#polling_hours ⇒ String
A description of when this location is open.
Corresponds to the JSON property pollingHours
930 931 932 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 930 def polling_hours @polling_hours end |
#sources ⇒ Array<Google::Apis::CivicinfoV2::Source>
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
936 937 938 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 936 def sources @sources end |
#start_date ⇒ String
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
942 943 944 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 942 def start_date @start_date end |
#voter_services ⇒ String
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
948 949 950 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 948 def voter_services @voter_services end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
955 956 957 958 959 960 961 962 963 964 965 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 955 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 |