Class: Google::Apis::CivicinfoV2::RepresentativeInfoData
- Inherits:
-
Object
- Object
- Google::Apis::CivicinfoV2::RepresentativeInfoData
- 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
Instance Attribute Summary collapse
-
#divisions ⇒ Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>
A map of political geographic divisions that contain the requested address, keyed by the unique Open Civic Data identifier for this division.
-
#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.
Constructor Details
#initialize(**args) ⇒ RepresentativeInfoData
Returns a new instance of RepresentativeInfoData.
1044 1045 1046 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1044 def initialize(**args) update!(**args) end |
Instance Attribute Details
#divisions ⇒ Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>
A map of political geographic divisions that contain the requested address,
keyed by the unique Open Civic Data identifier for this division.
Corresponds to the JSON property divisions
1030 1031 1032 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1030 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
1036 1037 1038 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1036 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
1042 1043 1044 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1042 def officials @officials end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1049 1050 1051 1052 1053 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1049 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 |