Class: Google::Apis::DocsV1::Link
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::Link
- 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 reference to another portion of a document or an external URL resource.
Instance Attribute Summary collapse
-
#bookmark_id ⇒ String
The ID of a bookmark in this document.
-
#heading_id ⇒ String
The ID of a heading in this document.
-
#url ⇒ String
An external URL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Link
constructor
A new instance of Link.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Link
Returns a new instance of Link
2079 2080 2081 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2079 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bookmark_id ⇒ String
The ID of a bookmark in this document.
Corresponds to the JSON property bookmarkId
2067 2068 2069 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2067 def bookmark_id @bookmark_id end |
#heading_id ⇒ String
The ID of a heading in this document.
Corresponds to the JSON property headingId
2072 2073 2074 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2072 def heading_id @heading_id end |
#url ⇒ String
An external URL.
Corresponds to the JSON property url
2077 2078 2079 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2077 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2084 2085 2086 2087 2088 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2084 def update!(**args) @bookmark_id = args[:bookmark_id] if args.key?(:bookmark_id) @heading_id = args[:heading_id] if args.key?(:heading_id) @url = args[:url] if args.key?(:url) end |