Class: Google::Apis::DocsV1::AddDocumentTabRequest

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

Adds a document tab. When a tab is added at a given index, all subsequent tabs' indexes are incremented.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddDocumentTabRequest

Returns a new instance of AddDocumentTabRequest.



35
36
37
# File 'lib/google/apis/docs_v1/classes.rb', line 35

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

Instance Attribute Details

#tab_propertiesGoogle::Apis::DocsV1::TabProperties

Properties of a tab. Corresponds to the JSON property tabProperties



33
34
35
# File 'lib/google/apis/docs_v1/classes.rb', line 33

def tab_properties
  @tab_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



40
41
42
# File 'lib/google/apis/docs_v1/classes.rb', line 40

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