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.



906
907
908
# File 'lib/google/apis/places_v1/classes.rb', line 906

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

Instance Attribute Details

#end_indexFixnum

Corresponds to the JSON property endIndex

Returns:

  • (Fixnum)


899
900
901
# File 'lib/google/apis/places_v1/classes.rb', line 899

def end_index
  @end_index
end

#start_indexFixnum

Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)


904
905
906
# File 'lib/google/apis/places_v1/classes.rb', line 904

def start_index
  @start_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



911
912
913
914
# File 'lib/google/apis/places_v1/classes.rb', line 911

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