class Google::Apis::CivicinfoV2::Official

Information about a person holding an elected office.

Attributes

address[RW]

Addresses at which to contact the official. Corresponds to the JSON property `address` @return [Array<Google::Apis::CivicinfoV2::SimpleAddressType>]

channels[RW]

A list of known (social) media channels for this official. Corresponds to the JSON property `channels` @return [Array<Google::Apis::CivicinfoV2::Channel>]

emails[RW]

The direct email addresses for the official. Corresponds to the JSON property `emails` @return [Array<String>]

name[RW]

The official's name. Corresponds to the JSON property `name` @return [String]

party[RW]

The full name of the party the official belongs to. Corresponds to the JSON property `party` @return [String]

phones[RW]

The official's public contact phone numbers. Corresponds to the JSON property `phones` @return [Array<String>]

photo_url[RW]

A URL for a photo of the official. Corresponds to the JSON property `photoUrl` @return [String]

urls[RW]

The official's public website URLs. Corresponds to the JSON property `urls` @return [Array<String>]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/civicinfo_v2/classes.rb, line 804
def update!(**args)
  @address = args[:address] if args.key?(:address)
  @channels = args[:channels] if args.key?(:channels)
  @emails = args[:emails] if args.key?(:emails)
  @name = args[:name] if args.key?(:name)
  @party = args[:party] if args.key?(:party)
  @phones = args[:phones] if args.key?(:phones)
  @photo_url = args[:photo_url] if args.key?(:photo_url)
  @urls = args[:urls] if args.key?(:urls)
end