Class: Google::Apis::CivicinfoV2::RepresentativeInfoData
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CivicinfoV2::RepresentativeInfoData
 
- Defined in:
- generated/google/apis/civicinfo_v2/classes.rb,
 generated/google/apis/civicinfo_v2/representations.rb,
 generated/google/apis/civicinfo_v2/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #divisions  ⇒ Hash<String,Google::Apis::CivicinfoV2::GeographicDivision> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Political geographic divisions that contain the requested address. 
- 
  
    
      #offices  ⇒ Array<Google::Apis::CivicinfoV2::Office> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Elected offices referenced by the divisions listed above. 
- 
  
    
      #officials  ⇒ Array<Google::Apis::CivicinfoV2::Official> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Officials holding the offices listed above. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RepresentativeInfoData 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RepresentativeInfoData. 
- 
  
    
      #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) ⇒ RepresentativeInfoData
Returns a new instance of RepresentativeInfoData
| 1189 1190 1191 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 1189 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#divisions ⇒ Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>
Political geographic divisions that contain the requested address.
Corresponds to the JSON property divisions
| 1175 1176 1177 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 1175 def divisions @divisions end | 
#offices ⇒ Array<Google::Apis::CivicinfoV2::Office>
Elected offices referenced by the divisions listed above. Will only be present
if includeOffices was true in the request.
Corresponds to the JSON property offices
| 1181 1182 1183 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 1181 def offices @offices end | 
#officials ⇒ Array<Google::Apis::CivicinfoV2::Official>
Officials holding the offices listed above. Will only be present if
includeOffices was true in the request.
Corresponds to the JSON property officials
| 1187 1188 1189 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 1187 def officials @officials end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1194 1195 1196 1197 1198 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 1194 def update!(**args) @divisions = args[:divisions] if args.key?(:divisions) @offices = args[:offices] if args.key?(:offices) @officials = args[:officials] if args.key?(:officials) end |