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 more...
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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location
2243 2244 2245 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2243 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
2235 2236 2237 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2235 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
2241 2242 2243 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2241 def segment_id @segment_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2248 2249 2250 2251 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2248 def update!(**args) @index = args[:index] if args.key?(:index) @segment_id = args[:segment_id] if args.key?(:segment_id) end |