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

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

A reference to another portion of a document or an external URL resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Link

Returns a new instance of Link.



2594
2595
2596
# File 'lib/google/apis/docs_v1/classes.rb', line 2594

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

Instance Attribute Details

#bookmarkGoogle::Apis::DocsV1::BookmarkLink

A reference to a bookmark in this document. Corresponds to the JSON property bookmark



2567
2568
2569
# File 'lib/google/apis/docs_v1/classes.rb', line 2567

def bookmark
  @bookmark
end

#bookmark_idString

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

Returns:

  • (String)


2572
2573
2574
# File 'lib/google/apis/docs_v1/classes.rb', line 2572

def bookmark_id
  @bookmark_id
end

#headingGoogle::Apis::DocsV1::HeadingLink

A reference to a heading in this document. Corresponds to the JSON property heading



2577
2578
2579
# File 'lib/google/apis/docs_v1/classes.rb', line 2577

def heading
  @heading
end

#heading_idString

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

Returns:

  • (String)


2582
2583
2584
# File 'lib/google/apis/docs_v1/classes.rb', line 2582

def heading_id
  @heading_id
end

#tab_idString

The ID of a tab in this document. Corresponds to the JSON property tabId

Returns:

  • (String)


2587
2588
2589
# File 'lib/google/apis/docs_v1/classes.rb', line 2587

def tab_id
  @tab_id
end

#urlString

An external URL. Corresponds to the JSON property url

Returns:

  • (String)


2592
2593
2594
# File 'lib/google/apis/docs_v1/classes.rb', line 2592

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2599
2600
2601
2602
2603
2604
2605
2606
# File 'lib/google/apis/docs_v1/classes.rb', line 2599

def update!(**args)
  @bookmark = args[:bookmark] if args.key?(:bookmark)
  @bookmark_id = args[:bookmark_id] if args.key?(:bookmark_id)
  @heading = args[:heading] if args.key?(:heading)
  @heading_id = args[:heading_id] if args.key?(:heading_id)
  @tab_id = args[:tab_id] if args.key?(:tab_id)
  @url = args[:url] if args.key?(:url)
end