Class: Google::Apis::CivicinfoV2::DivisionSearchResponse

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 division search 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) ⇒ DivisionSearchResponse

Returns a new instance of DivisionSearchResponse.



459
460
461
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 459

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


452
453
454
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 452

def kind
  @kind
end

#resultsArray<Google::Apis::CivicinfoV2::DivisionSearchResult>

Corresponds to the JSON property results



457
458
459
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 457

def results
  @results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



464
465
466
467
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 464

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @results = args[:results] if args.key?(:results)
end