class Google::Apis::CivicinfoV2::AdministrativeBody

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

Attributes

absentee_voting_info_url[RW]

A URL provided by this administrative body for information on absentee voting. Corresponds to the JSON property `absenteeVotingInfoUrl` @return [String]

ballot_info_url[RW]

A URL provided by this administrative body to give contest information to the voter. Corresponds to the JSON property `ballotInfoUrl` @return [String]

correspondence_address[RW]

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

election_info_url[RW]

A URL provided by this administrative body for looking up general election information. Corresponds to the JSON property `electionInfoUrl` @return [String]

election_officials[RW]

The election officials for this election administrative body. Corresponds to the JSON property `electionOfficials` @return [Array<Google::Apis::CivicinfoV2::ElectionOfficial>]

election_registration_confirmation_url[RW]

A URL provided by this administrative body for confirming that the voter is registered to vote. Corresponds to the JSON property `electionRegistrationConfirmationUrl` @return [String]

election_registration_url[RW]

A URL provided by this administrative body for looking up how to register to vote. Corresponds to the JSON property `electionRegistrationUrl` @return [String]

election_rules_url[RW]

A URL provided by this administrative body describing election rules to the voter. Corresponds to the JSON property `electionRulesUrl` @return [String]

hours_of_operation[RW]

A description of the hours of operation for this administrative body. Corresponds to the JSON property `hoursOfOperation` @return [String]

name[RW]

The name of this election administrative body. Corresponds to the JSON property `name` @return [String]

physical_address[RW]

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

voter_services[RW]

A description of the services this administrative body may provide. Corresponds to the JSON property `voter_services` @return [Array<String>]

voting_location_finder_url[RW]

A URL provided by this administrative body for looking up where to vote. Corresponds to the JSON property `votingLocationFinderUrl` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/civicinfo_v2/classes.rb, line 147
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 152
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_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