Class: Google::Apis::DocsV1::Tab

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 tab in a document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Tab

Returns a new instance of Tab.



5942
5943
5944
# File 'lib/google/apis/docs_v1/classes.rb', line 5942

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

Instance Attribute Details

#child_tabsArray<Google::Apis::DocsV1::Tab>

The child tabs nested within this tab. Corresponds to the JSON property childTabs

Returns:



5930
5931
5932
# File 'lib/google/apis/docs_v1/classes.rb', line 5930

def child_tabs
  @child_tabs
end

#document_tabGoogle::Apis::DocsV1::DocumentTab

A tab with document contents. Corresponds to the JSON property documentTab



5935
5936
5937
# File 'lib/google/apis/docs_v1/classes.rb', line 5935

def document_tab
  @document_tab
end

#tab_propertiesGoogle::Apis::DocsV1::TabProperties

Properties of a tab. Corresponds to the JSON property tabProperties



5940
5941
5942
# File 'lib/google/apis/docs_v1/classes.rb', line 5940

def tab_properties
  @tab_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5947
5948
5949
5950
5951
# File 'lib/google/apis/docs_v1/classes.rb', line 5947

def update!(**args)
  @child_tabs = args[:child_tabs] if args.key?(:child_tabs)
  @document_tab = args[:document_tab] if args.key?(:document_tab)
  @tab_properties = args[:tab_properties] if args.key?(:tab_properties)
end