Class: Google::Apis::CivicinfoV2::RepresentativeInfoResponse
- Inherits:
-
Object
- Object
- Google::Apis::CivicinfoV2::RepresentativeInfoResponse
- Defined in:
- generated/google/apis/civicinfo_v2/classes.rb,
generated/google/apis/civicinfo_v2/representations.rb,
generated/google/apis/civicinfo_v2/representations.rb
Overview
The result of a representative info lookup query.
Instance Attribute Summary collapse
-
#divisions ⇒ Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>
Political geographic divisions that contain the requested address.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#normalized_input ⇒ Google::Apis::CivicinfoV2::SimpleAddressType
A simple representation of an 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) ⇒ RepresentativeInfoResponse
constructor
A new instance of RepresentativeInfoResponse.
-
#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) ⇒ RepresentativeInfoResponse
Returns a new instance of RepresentativeInfoResponse
1253 1254 1255 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1253 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
1228 1229 1230 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1228 def divisions @divisions end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "civicinfo#
representativeInfoResponse".
Corresponds to the JSON property kind
1234 1235 1236 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1234 def kind @kind end |
#normalized_input ⇒ Google::Apis::CivicinfoV2::SimpleAddressType
A simple representation of an address.
Corresponds to the JSON property normalizedInput
1239 1240 1241 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1239 def normalized_input @normalized_input 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
1245 1246 1247 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1245 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
1251 1252 1253 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1251 def officials @officials end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1258 1259 1260 1261 1262 1263 1264 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1258 def update!(**args) @divisions = args[:divisions] if args.key?(:divisions) @kind = args[:kind] if args.key?(:kind) @normalized_input = args[:normalized_input] if args.key?(:normalized_input) @offices = args[:offices] if args.key?(:offices) @officials = args[:officials] if args.key?(:officials) end |