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.
333 334 335 |
# File 'lib/google/apis/places_v1/classes.rb', line 333 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
326 327 328 |
# File 'lib/google/apis/places_v1/classes.rb', line 326 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
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 |