Class: Google::Apis::CivicinfoV2::SearchDivisionResponse

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) ⇒ SearchDivisionResponse

Returns a new instance of SearchDivisionResponse.


469
470
471
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 469

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)

462
463
464
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 462

def kind
  @kind
end

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

Corresponds to the JSON property results


467
468
469
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 467

def results
  @results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


474
475
476
477
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 474

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