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.



477
478
479
# File 'lib/google/apis/places_v1/classes.rb', line 477

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



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

def place_prediction
  @place_prediction
end

#query_predictionGoogle::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction

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



475
476
477
# File 'lib/google/apis/places_v1/classes.rb', line 475

def query_prediction
  @query_prediction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



482
483
484
485
# File 'lib/google/apis/places_v1/classes.rb', line 482

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