Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponse
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/places_v1/classes.rb,
lib/google/apis/places_v1/representations.rb,
lib/google/apis/places_v1/representations.rb
Overview
Response proto for AutocompletePlaces.
Instance Attribute Summary collapse
-
#suggestions ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion>
Contains a list of suggestions, ordered in descending order of relevance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1AutocompletePlacesResponse
constructor
A new instance of GoogleMapsPlacesV1AutocompletePlacesResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1AutocompletePlacesResponse
Returns a new instance of GoogleMapsPlacesV1AutocompletePlacesResponse.
309 310 311 |
# File 'lib/google/apis/places_v1/classes.rb', line 309 def initialize(**args) update!(**args) end |
Instance Attribute Details
#suggestions ⇒ Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion>
Contains a list of suggestions, ordered in descending order of relevance.
Corresponds to the JSON property suggestions
307 308 309 |
# File 'lib/google/apis/places_v1/classes.rb', line 307 def suggestions @suggestions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
314 315 316 |
# File 'lib/google/apis/places_v1/classes.rb', line 314 def update!(**args) @suggestions = args[:suggestions] if args.key?(:suggestions) end |