Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion
- 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
-
#place_prediction ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction
Prediction results for a Place Autocomplete prediction.
-
#query_prediction ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction
Prediction results for a Query Autocomplete prediction.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion
constructor
A new instance of GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_prediction ⇒ Google::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_prediction ⇒ Google::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 |