class Google::Apis::CivicinfoV2::RepresentativeInfoData

Attributes

divisions[RW]

Political geographic divisions that contain the requested address. Corresponds to the JSON property `divisions` @return [Hash<String,Google::Apis::CivicinfoV2::GeographicDivision>]

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 generated/google/apis/civicinfo_v2/classes.rb, line 899
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/civicinfo_v2/classes.rb, line 904
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