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.



5556
5557
5558
# File 'lib/google/apis/docs_v1/classes.rb', line 5556

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

Instance Attribute Details

#indexFixnum

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

Returns:

  • (Fixnum)


5532
5533
5534
# File 'lib/google/apis/docs_v1/classes.rb', line 5532

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)


5538
5539
5540
# File 'lib/google/apis/docs_v1/classes.rb', line 5538

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)


5544
5545
5546
# File 'lib/google/apis/docs_v1/classes.rb', line 5544

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)


5549
5550
5551
# File 'lib/google/apis/docs_v1/classes.rb', line 5549

def tab_id
  @tab_id
end

#titleString

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

Returns:

  • (String)


5554
5555
5556
# File 'lib/google/apis/docs_v1/classes.rb', line 5554

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5561
5562
5563
5564
5565
5566
5567
# File 'lib/google/apis/docs_v1/classes.rb', line 5561

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