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.



464
465
466
# File 'lib/google/apis/places_v1/classes.rb', line 464

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



457
458
459
# File 'lib/google/apis/places_v1/classes.rb', line 457

def place_prediction
  @place_prediction
end

#query_predictionGoogle::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction

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



462
463
464
# File 'lib/google/apis/places_v1/classes.rb', line 462

def query_prediction
  @query_prediction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



469
470
471
472
# File 'lib/google/apis/places_v1/classes.rb', line 469

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