Class: Google::Apis::DocsV1::Location
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::Location
- 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
A particular location in the document.
Instance Attribute Summary collapse
-
#index ⇒ Fixnum
The zero-based index, in UTF-16 code units.
-
#segment_id ⇒ String
The ID of the header, footer or footnote the location is in.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Location
constructor
A new instance of Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location.
2522 2523 2524 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2522 def initialize(**args) update!(**args) end |
Instance Attribute Details
#index ⇒ Fixnum
The zero-based index, in UTF-16 code units. The index is relative to the
beginning of the segment specified by segment_id.
Corresponds to the JSON property index
2514 2515 2516 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2514 def index @index end |
#segment_id ⇒ String
The ID of the header, footer or footnote the location is in. An empty segment
ID signifies the document's body.
Corresponds to the JSON property segmentId
2520 2521 2522 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2520 def segment_id @segment_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2527 2528 2529 2530 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2527 def update!(**args) @index = args[:index] if args.key?(:index) @segment_id = args[:segment_id] if args.key?(:segment_id) end |