Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange

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 range of highlighted text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange

Returns a new instance of GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange.



762
763
764
# File 'lib/google/apis/places_v1/classes.rb', line 762

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

Instance Attribute Details

#end_indexFixnum

Corresponds to the JSON property endIndex

Returns:

  • (Fixnum)


755
756
757
# File 'lib/google/apis/places_v1/classes.rb', line 755

def end_index
  @end_index
end

#start_indexFixnum

Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)


760
761
762
# File 'lib/google/apis/places_v1/classes.rb', line 760

def start_index
  @start_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



767
768
769
770
# File 'lib/google/apis/places_v1/classes.rb', line 767

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