Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText

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

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText

Returns a new instance of GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText.



737
738
739
# File 'lib/google/apis/places_v1/classes.rb', line 737

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#highlighted_text_rangesArray<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange>

The list of the ranges of the highlighted text. Corresponds to the JSON property highlightedTextRanges



730
731
732
# File 'lib/google/apis/places_v1/classes.rb', line 730

def highlighted_text_ranges
  @highlighted_text_ranges
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


735
736
737
# File 'lib/google/apis/places_v1/classes.rb', line 735

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



742
743
744
745
# File 'lib/google/apis/places_v1/classes.rb', line 742

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