Class: Google::Apis::CivicinfoV2::Official
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CivicinfoV2::Official
 
- Defined in:
- generated/google/apis/civicinfo_v2/classes.rb,
 generated/google/apis/civicinfo_v2/representations.rb,
 generated/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. 
- 
  
    
      #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. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Official
Returns a new instance of Official
| 876 877 878 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 876 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
| 839 840 841 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 839 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
| 844 845 846 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 844 def channels @channels end | 
#emails ⇒ Array<String>
The direct email addresses for the official.
Corresponds to the JSON property emails
| 849 850 851 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 849 def emails @emails end | 
#name ⇒ String
The official's name.
Corresponds to the JSON property name
| 854 855 856 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 854 def name @name end | 
#party ⇒ String
The full name of the party the official belongs to.
Corresponds to the JSON property party
| 859 860 861 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 859 def party @party end | 
#phones ⇒ Array<String>
The official's public contact phone numbers.
Corresponds to the JSON property phones
| 864 865 866 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 864 def phones @phones end | 
#photo_url ⇒ String
A URL for a photo of the official.
Corresponds to the JSON property photoUrl
| 869 870 871 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 869 def photo_url @photo_url end | 
#urls ⇒ Array<String>
The official's public website URLs.
Corresponds to the JSON property urls
| 874 875 876 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 874 def urls @urls end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 881 882 883 884 885 886 887 888 889 890 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 881 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 |