Class: Google::Apis::DocsV1::TabProperties

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 of a tab.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TabProperties

Returns a new instance of TabProperties.



5508
5509
5510
# File 'lib/google/apis/docs_v1/classes.rb', line 5508

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

Instance Attribute Details

#indexFixnum

The index of the tab within the parent. Corresponds to the JSON property index

Returns:

  • (Fixnum)


5484
5485
5486
# File 'lib/google/apis/docs_v1/classes.rb', line 5484

def index
  @index
end

#nesting_levelFixnum

Output only. The depth of the tab within the document. Root-level tabs start at 0. Corresponds to the JSON property nestingLevel

Returns:

  • (Fixnum)


5490
5491
5492
# File 'lib/google/apis/docs_v1/classes.rb', line 5490

def nesting_level
  @nesting_level
end

#parent_tab_idString

Optional. The ID of the parent tab. Empty when the current tab is a root-level tab, which means it doesn't have any parents. Corresponds to the JSON property parentTabId

Returns:

  • (String)


5496
5497
5498
# File 'lib/google/apis/docs_v1/classes.rb', line 5496

def parent_tab_id
  @parent_tab_id
end

#tab_idString

Output only. The ID of the tab. This field can't be changed. Corresponds to the JSON property tabId

Returns:

  • (String)


5501
5502
5503
# File 'lib/google/apis/docs_v1/classes.rb', line 5501

def tab_id
  @tab_id
end

#titleString

The user-visible name of the tab. Corresponds to the JSON property title

Returns:

  • (String)


5506
5507
5508
# File 'lib/google/apis/docs_v1/classes.rb', line 5506

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5513
5514
5515
5516
5517
5518
5519
# File 'lib/google/apis/docs_v1/classes.rb', line 5513

def update!(**args)
  @index = args[:index] if args.key?(:index)
  @nesting_level = args[:nesting_level] if args.key?(:nesting_level)
  @parent_tab_id = args[:parent_tab_id] if args.key?(:parent_tab_id)
  @tab_id = args[:tab_id] if args.key?(:tab_id)
  @title = args[:title] if args.key?(:title)
end