Class: Google::Apis::CivicinfoV2::RepresentativeInfoResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/civicinfo_v2/classes.rb,
generated/google/apis/civicinfo_v2/representations.rb,
generated/google/apis/civicinfo_v2/representations.rb

Overview

The result of a representative info lookup query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RepresentativeInfoResponse

Returns a new instance of RepresentativeInfoResponse.



1385
1386
1387
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1385

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#divisionsHash<String,Google::Apis::CivicinfoV2::GeographicDivision>

Political geographic divisions that contain the requested address. Corresponds to the JSON property divisions



1360
1361
1362
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1360

def divisions
  @divisions
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "civicinfo# representativeInfoResponse". Corresponds to the JSON property kind

Returns:

  • (String)


1366
1367
1368
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1366

def kind
  @kind
end

#normalized_inputGoogle::Apis::CivicinfoV2::SimpleAddressType

A simple representation of an address. Corresponds to the JSON property normalizedInput



1371
1372
1373
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1371

def normalized_input
  @normalized_input
end

#officesArray<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



1377
1378
1379
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1377

def offices
  @offices
end

#officialsArray<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



1383
1384
1385
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1383

def officials
  @officials
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1390
1391
1392
1393
1394
1395
1396
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1390

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