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.


518
519
520
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 518

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)

511
512
513
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 511

def kind
  @kind
end

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

Corresponds to the JSON property results


516
517
518
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 516

def results
  @results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


523
524
525
526
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 523

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