class Google::Apis::CivicinfoV2::Official
Information about a person holding an elected office.
Attributes
Addresses at which to contact the official. Corresponds to the JSON property `address` @return [Array<Google::Apis::CivicinfoV2::SimpleAddressType>]
A list of known (social) media channels for this official. Corresponds to the JSON property `channels` @return [Array<Google::Apis::CivicinfoV2::Channel>]
The direct email addresses for the official. Corresponds to the JSON property `emails` @return [Array<String>]
The official's name. Corresponds to the JSON property `name` @return [String]
The full name of the party the official belongs to. Corresponds to the JSON property `party` @return [String]
The official's public contact phone numbers. Corresponds to the JSON property `phones` @return [Array<String>]
A URL for a photo of the official. Corresponds to the JSON property `photoUrl` @return [String]
The official's public website URLs. Corresponds to the JSON property `urls` @return [Array<String>]
Public Class Methods
# File lib/google/apis/civicinfo_v2/classes.rb, line 799 def initialize(**args) update!(**args) end
Public Instance Methods
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