Class: Google::Apis::DocsV1::RichLinkProperties

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RichLinkProperties

Returns a new instance of RichLinkProperties.



4399
4400
4401
# File 'lib/google/apis/docs_v1/classes.rb', line 4399

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#mime_typeString

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

Returns:

  • (String)


4385
4386
4387
# File 'lib/google/apis/docs_v1/classes.rb', line 4385

def mime_type
  @mime_type
end

#titleString

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

Returns:

  • (String)


4392
4393
4394
# File 'lib/google/apis/docs_v1/classes.rb', line 4392

def title
  @title
end

#uriString

Output only. The URI to the RichLink. This is always present. Corresponds to the JSON property uri

Returns:

  • (String)


4397
4398
4399
# File 'lib/google/apis/docs_v1/classes.rb', line 4397

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4404
4405
4406
4407
4408
# File 'lib/google/apis/docs_v1/classes.rb', line 4404

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