Class: Google::Apis::DocsV1::Range
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::Range
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb
Overview
Specifies a contiguous range of text.
Instance Attribute Summary collapse
-
#end_index ⇒ Fixnum
The zero-based end index of this range, exclusive, in UTF-16 code units.
-
#segment_id ⇒ String
The ID of the header, footer or footnote that this range is contained in.
-
#start_index ⇒ Fixnum
The zero-based start index of this range, in UTF-16 code units.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Range
constructor
A new instance of Range.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Range
Returns a new instance of Range.
3893 3894 3895 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3893 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_index ⇒ Fixnum
The zero-based end index of this range, exclusive, in UTF-16 code units.
In all current uses, an end index must be provided. This field is an
Int32Value in order to accommodate future use cases with open-ended ranges.
Corresponds to the JSON property endIndex
3878 3879 3880 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3878 def end_index @end_index end |
#segment_id ⇒ String
The ID of the header, footer or footnote that this range is contained in.
An empty segment ID signifies the document's body.
Corresponds to the JSON property segmentId
3884 3885 3886 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3884 def segment_id @segment_id end |
#start_index ⇒ Fixnum
The zero-based start index of this range, in UTF-16 code units.
In all current uses, a start index must be provided. This field is an
Int32Value in order to accommodate future use cases with open-ended ranges.
Corresponds to the JSON property startIndex
3891 3892 3893 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3891 def start_index @start_index end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3898 3899 3900 3901 3902 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3898 def update!(**args) @end_index = args[:end_index] if args.key?(:end_index) @segment_id = args[:segment_id] if args.key?(:segment_id) @start_index = args[:start_index] if args.key?(:start_index) end |