class Google::Apis::CivicinfoV2::RepresentativeInfoData
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>]
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 919 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 924 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