Class: Google::Apis::CivicinfoV2::CivicinfoApiprotosV2DivisionSearchResponse

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

Returns a new instance of CivicinfoApiprotosV2DivisionSearchResponse.



65
66
67
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 65

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)


58
59
60
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 58

def kind
  @kind
end

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

Corresponds to the JSON property results



63
64
65
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 63

def results
  @results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



70
71
72
73
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 70

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