Class: Google::Apis::DocsV1::Link

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Link

Returns a new instance of Link.



2438
2439
2440
# File 'generated/google/apis/docs_v1/classes.rb', line 2438

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

Instance Attribute Details

#bookmark_idString

The ID of a bookmark in this document. Corresponds to the JSON property bookmarkId

Returns:

  • (String)


2426
2427
2428
# File 'generated/google/apis/docs_v1/classes.rb', line 2426

def bookmark_id
  @bookmark_id
end

#heading_idString

The ID of a heading in this document. Corresponds to the JSON property headingId

Returns:

  • (String)


2431
2432
2433
# File 'generated/google/apis/docs_v1/classes.rb', line 2431

def heading_id
  @heading_id
end

#urlString

An external URL. Corresponds to the JSON property url

Returns:

  • (String)


2436
2437
2438
# File 'generated/google/apis/docs_v1/classes.rb', line 2436

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2443
2444
2445
2446
2447
# File 'generated/google/apis/docs_v1/classes.rb', line 2443

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