Class: Google::Apis::DocsV1::Location
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::Location
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/docs_v1/classes.rb,
lib/google/apis/docs_v1/representations.rb,
lib/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.
2526 2527 2528 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2526 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
2518 2519 2520 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2518 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
2524 2525 2526 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2524 def segment_id @segment_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2531 2532 2533 2534 |
# File 'lib/google/apis/docs_v1/classes.rb', line 2531 def update!(**args) @index = args[:index] if args.key?(:index) @segment_id = args[:segment_id] if args.key?(:segment_id) end |