Class: Google::Apis::CivicinfoV2::AdministrativeBody

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/civicinfo_v2/classes.rb,
lib/google/apis/civicinfo_v2/representations.rb,
lib/google/apis/civicinfo_v2/representations.rb

Overview

Information about an election administrative body (e.g. County Board of Elections).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdministrativeBody

Returns a new instance of AdministrativeBody.



151
152
153
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 151

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

Instance Attribute Details

#absentee_voting_info_urlString

A URL provided by this administrative body for information on absentee voting. Corresponds to the JSON property absenteeVotingInfoUrl

Returns:

  • (String)


72
73
74
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 72

def absentee_voting_info_url
  @absentee_voting_info_url
end

#ballot_info_urlString

A URL provided by this administrative body to give contest information to the voter. Corresponds to the JSON property ballotInfoUrl

Returns:

  • (String)


78
79
80
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 78

def ballot_info_url
  @ballot_info_url
end

#correspondence_addressGoogle::Apis::CivicinfoV2::SimpleAddressType

A simple representation of an address. Corresponds to the JSON property correspondenceAddress



83
84
85
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 83

def correspondence_address
  @correspondence_address
end

#election_info_urlString

A URL provided by this administrative body for looking up general election information. Corresponds to the JSON property electionInfoUrl

Returns:

  • (String)


89
90
91
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 89

def election_info_url
  @election_info_url
end

#election_notice_textString

A last minute or emergency notification text provided by this administrative body. Corresponds to the JSON property electionNoticeText

Returns:

  • (String)


95
96
97
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 95

def election_notice_text
  @election_notice_text
end

#election_notice_urlString

A URL provided by this administrative body for additional information related to the last minute or emergency notification. Corresponds to the JSON property electionNoticeUrl

Returns:

  • (String)


101
102
103
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 101

def election_notice_url
  @election_notice_url
end

#election_officialsArray<Google::Apis::CivicinfoV2::ElectionOfficial>

The election officials for this election administrative body. Corresponds to the JSON property electionOfficials



106
107
108
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 106

def election_officials
  @election_officials
end

#election_registration_confirmation_urlString

A URL provided by this administrative body for confirming that the voter is registered to vote. Corresponds to the JSON property electionRegistrationConfirmationUrl

Returns:

  • (String)


112
113
114
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 112

def election_registration_confirmation_url
  @election_registration_confirmation_url
end

#election_registration_urlString

A URL provided by this administrative body for looking up how to register to vote. Corresponds to the JSON property electionRegistrationUrl

Returns:

  • (String)


118
119
120
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 118

def election_registration_url
  @election_registration_url
end

#election_rules_urlString

A URL provided by this administrative body describing election rules to the voter. Corresponds to the JSON property electionRulesUrl

Returns:

  • (String)


124
125
126
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 124

def election_rules_url
  @election_rules_url
end

#hours_of_operationString

A description of the hours of operation for this administrative body. Corresponds to the JSON property hoursOfOperation

Returns:

  • (String)


129
130
131
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 129

def hours_of_operation
  @hours_of_operation
end

#nameString

The name of this election administrative body. Corresponds to the JSON property name

Returns:

  • (String)


134
135
136
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 134

def name
  @name
end

#physical_addressGoogle::Apis::CivicinfoV2::SimpleAddressType

A simple representation of an address. Corresponds to the JSON property physicalAddress



139
140
141
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 139

def physical_address
  @physical_address
end

#voter_servicesArray<String>

A description of the services this administrative body may provide. Corresponds to the JSON property voter_services

Returns:

  • (Array<String>)


144
145
146
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 144

def voter_services
  @voter_services
end

#voting_location_finder_urlString

A URL provided by this administrative body for looking up where to vote. Corresponds to the JSON property votingLocationFinderUrl

Returns:

  • (String)


149
150
151
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 149

def voting_location_finder_url
  @voting_location_finder_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 156

def update!(**args)
  @absentee_voting_info_url = args[:absentee_voting_info_url] if args.key?(:absentee_voting_info_url)
  @ballot_info_url = args[:ballot_info_url] if args.key?(:ballot_info_url)
  @correspondence_address = args[:correspondence_address] if args.key?(:correspondence_address)
  @election_info_url = args[:election_info_url] if args.key?(:election_info_url)
  @election_notice_text = args[:election_notice_text] if args.key?(:election_notice_text)
  @election_notice_url = args[:election_notice_url] if args.key?(:election_notice_url)
  @election_officials = args[:election_officials] if args.key?(:election_officials)
  @election_registration_confirmation_url = args[:election_registration_confirmation_url] if args.key?(:election_registration_confirmation_url)
  @election_registration_url = args[:election_registration_url] if args.key?(:election_registration_url)
  @election_rules_url = args[:election_rules_url] if args.key?(:election_rules_url)
  @hours_of_operation = args[:hours_of_operation] if args.key?(:hours_of_operation)
  @name = args[:name] if args.key?(:name)
  @physical_address = args[:physical_address] if args.key?(:physical_address)
  @voter_services = args[:voter_services] if args.key?(:voter_services)
  @voting_location_finder_url = args[:voting_location_finder_url] if args.key?(:voting_location_finder_url)
end