Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
- 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
Experimental: See https://developers.google.com/maps/documentation/places/web- service/experimental/places-generative for more details. User review justifications. This highlights a section of the user review that would interest an end user. For instance, if the search query is "firewood pizza", the review justification highlights the text relevant to the search query.
Instance Attribute Summary collapse
-
#highlighted_text ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText
The text highlighted by the justification.
-
#review ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1Review
Information about a review of a place.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
constructor
A new instance of GoogleMapsPlacesV1ContextualContentJustificationReviewJustification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
Returns a new instance of GoogleMapsPlacesV1ContextualContentJustificationReviewJustification.
710 711 712 |
# File 'lib/google/apis/places_v1/classes.rb', line 710 def initialize(**args) update!(**args) end |
Instance Attribute Details
#highlighted_text ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText
The text highlighted by the justification. This is a subset of the review
itself. The exact word to highlight is marked by the HighlightedTextRange.
There could be several words in the text being highlighted.
Corresponds to the JSON property highlightedText
703 704 705 |
# File 'lib/google/apis/places_v1/classes.rb', line 703 def highlighted_text @highlighted_text end |
#review ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1Review
Information about a review of a place.
Corresponds to the JSON property review
708 709 710 |
# File 'lib/google/apis/places_v1/classes.rb', line 708 def review @review end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
715 716 717 718 |
# File 'lib/google/apis/places_v1/classes.rb', line 715 def update!(**args) @highlighted_text = args[:highlighted_text] if args.key?(:highlighted_text) @review = args[:review] if args.key?(:review) end |