class Google::Apis::CivicinfoV2::RepresentativeInfoResponse

The result of a representative info lookup query.

Attributes

divisions[RW]

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>]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string ā€œcivicinfo# representativeInfoResponseā€. Corresponds to the JSON property `kind` @return [String]

normalized_input[RW]

A simple representation of an address. Corresponds to the JSON property `normalizedInput` @return [Google::Apis::CivicinfoV2::SimpleAddressType]

offices[RW]

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[RW]

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

new(**args) click to toggle source
# File lib/google/apis/civicinfo_v2/classes.rb, line 964
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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