class Google::Apis::CivicinfoV2::RepresentativeInfoResponse
The result of a representative info lookup query.
Attributes
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` @return [Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>]
Identifies what kind of resource this is. Value: the fixed string ācivicinfo# representativeInfoResponseā. Corresponds to the JSON property `kind` @return [String]
A simple representation of an address. Corresponds to the JSON property `normalizedInput` @return [Google::Apis::CivicinfoV2::SimpleAddressType]
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` @return [Array<Google::Apis::CivicinfoV2::Office>]
Officials holding the offices listed above. Will only be present if includeOffices was true in the request. Corresponds to the JSON property `officials` @return [Array<Google::Apis::CivicinfoV2::Official>]
Public Class Methods
# File lib/google/apis/civicinfo_v2/classes.rb, line 964 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/civicinfo_v2/classes.rb, line 969 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