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

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

Overview

The result of a division search query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchDivisionResponse

Returns a new instance of SearchDivisionResponse.



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

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)


460
461
462
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 460

def kind
  @kind
end

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

Corresponds to the JSON property results



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

def results
  @results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



472
473
474
475
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 472

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