Class: Google::Apis::CivicinfoV2::Official
- Inherits:
-
Object
- Object
- Google::Apis::CivicinfoV2::Official
- 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 a person holding an elected office.
Instance Attribute Summary collapse
-
#address ⇒ Array<Google::Apis::CivicinfoV2::SimpleAddressType>
Addresses at which to contact the official.
-
#channels ⇒ Array<Google::Apis::CivicinfoV2::Channel>
A list of known (social) media channels for this official.
-
#emails ⇒ Array<String>
The direct email addresses for the official.
-
#geocoding_summaries ⇒ Array<Google::Apis::CivicinfoV2::GeocodingSummary>
Detailed summary about the official's address's geocoding Corresponds to the JSON property
geocodingSummaries. -
#name ⇒ String
The official's name.
-
#party ⇒ String
The full name of the party the official belongs to.
-
#phones ⇒ Array<String>
The official's public contact phone numbers.
-
#photo_url ⇒ String
A URL for a photo of the official.
-
#urls ⇒ Array<String>
The official's public website URLs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Official
constructor
A new instance of Official.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Official
Returns a new instance of Official.
945 946 947 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 945 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ Array<Google::Apis::CivicinfoV2::SimpleAddressType>
Addresses at which to contact the official.
Corresponds to the JSON property address
903 904 905 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 903 def address @address end |
#channels ⇒ Array<Google::Apis::CivicinfoV2::Channel>
A list of known (social) media channels for this official.
Corresponds to the JSON property channels
908 909 910 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 908 def channels @channels end |
#emails ⇒ Array<String>
The direct email addresses for the official.
Corresponds to the JSON property emails
913 914 915 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 913 def emails @emails end |
#geocoding_summaries ⇒ Array<Google::Apis::CivicinfoV2::GeocodingSummary>
Detailed summary about the official's address's geocoding
Corresponds to the JSON property geocodingSummaries
918 919 920 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 918 def geocoding_summaries @geocoding_summaries end |
#name ⇒ String
The official's name.
Corresponds to the JSON property name
923 924 925 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 923 def name @name end |
#party ⇒ String
The full name of the party the official belongs to.
Corresponds to the JSON property party
928 929 930 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 928 def party @party end |
#phones ⇒ Array<String>
The official's public contact phone numbers.
Corresponds to the JSON property phones
933 934 935 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 933 def phones @phones end |
#photo_url ⇒ String
A URL for a photo of the official.
Corresponds to the JSON property photoUrl
938 939 940 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 938 def photo_url @photo_url end |
#urls ⇒ Array<String>
The official's public website URLs.
Corresponds to the JSON property urls
943 944 945 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 943 def urls @urls end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
950 951 952 953 954 955 956 957 958 959 960 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 950 def update!(**args) @address = args[:address] if args.key?(:address) @channels = args[:channels] if args.key?(:channels) @emails = args[:emails] if args.key?(:emails) @geocoding_summaries = args[:geocoding_summaries] if args.key?(:geocoding_summaries) @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 |