Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion

Inherits:
Object
  • Object
show all
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

An Autocomplete suggestion result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion

Returns a new instance of GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion.



333
334
335
# File 'lib/google/apis/places_v1/classes.rb', line 333

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#place_predictionGoogle::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction

Prediction results for a Place Autocomplete prediction. Corresponds to the JSON property placePrediction



326
327
328
# File 'lib/google/apis/places_v1/classes.rb', line 326

def place_prediction
  @place_prediction
end

#query_predictionGoogle::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction

Prediction results for a Query Autocomplete prediction. Corresponds to the JSON property queryPrediction



331
332
333
# File 'lib/google/apis/places_v1/classes.rb', line 331

def query_prediction
  @query_prediction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



338
339
340
341
# File 'lib/google/apis/places_v1/classes.rb', line 338

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