Class: Google::Apis::DocsV1::RichLinkProperties
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::RichLinkProperties
- 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
Properties specific to a RichLink.
Instance Attribute Summary collapse
-
#mime_type ⇒ String
Output only.
-
#title ⇒ String
Output only.
-
#uri ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RichLinkProperties
constructor
A new instance of RichLinkProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RichLinkProperties
Returns a new instance of RichLinkProperties.
4396 4397 4398 |
# File 'lib/google/apis/docs_v1/classes.rb', line 4396 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mime_type ⇒ String
Output only. The MIME type of the RichLink, if there is one (i.e., when it is a file in Drive).
Corresponds to the JSON property mimeType
4382 4383 4384 |
# File 'lib/google/apis/docs_v1/classes.rb', line 4382 def mime_type @mime_type end |
#title ⇒ String
Output only. The title of the RichLink as displayed in the link. This title
matches the title of the linked resource at the time of the insertion or last
update of the link. This field is always present.
Corresponds to the JSON property title
4389 4390 4391 |
# File 'lib/google/apis/docs_v1/classes.rb', line 4389 def title @title end |
#uri ⇒ String
Output only. The URI to the RichLink. This is always present.
Corresponds to the JSON property uri
4394 4395 4396 |
# File 'lib/google/apis/docs_v1/classes.rb', line 4394 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4401 4402 4403 4404 4405 |
# File 'lib/google/apis/docs_v1/classes.rb', line 4401 def update!(**args) @mime_type = args[:mime_type] if args.key?(:mime_type) @title = args[:title] if args.key?(:title) @uri = args[:uri] if args.key?(:uri) end |