Class: Google::Apis::DocsV1::TabProperties
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::TabProperties
- 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
-
#icon_emoji ⇒ String
Optional.
-
#index ⇒ Fixnum
The zero-based index of the tab within the parent.
-
#nesting_level ⇒ Fixnum
Output only.
-
#parent_tab_id ⇒ String
Optional.
-
#tab_id ⇒ String
The immutable ID of the tab.
-
#title ⇒ String
The user-visible name of the tab.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TabProperties
constructor
A new instance of TabProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TabProperties
Returns a new instance of TabProperties.
6045 6046 6047 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6045 def initialize(**args) update!(**args) end |
Instance Attribute Details
#icon_emoji ⇒ String
Optional. The emoji icon displayed with the tab. A valid emoji icon is
represented by a non-empty Unicode string. Any set of characters that don't
represent a single emoji is invalid. If an emoji is invalid, a 400 bad request
error is returned. If this value is unset or empty, the tab will display the
default tab icon.
Corresponds to the JSON property iconEmoji
6016 6017 6018 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6016 def icon_emoji @icon_emoji end |
#index ⇒ Fixnum
The zero-based index of the tab within the parent.
Corresponds to the JSON property index
6021 6022 6023 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6021 def index @index end |
#nesting_level ⇒ Fixnum
Output only. The depth of the tab within the document. Root-level tabs start
at 0.
Corresponds to the JSON property nestingLevel
6027 6028 6029 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6027 def nesting_level @nesting_level end |
#parent_tab_id ⇒ String
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
6033 6034 6035 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6033 def parent_tab_id @parent_tab_id end |
#tab_id ⇒ String
The immutable ID of the tab.
Corresponds to the JSON property tabId
6038 6039 6040 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6038 def tab_id @tab_id end |
#title ⇒ String
The user-visible name of the tab.
Corresponds to the JSON property title
6043 6044 6045 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6043 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6050 6051 6052 6053 6054 6055 6056 6057 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6050 def update!(**args) @icon_emoji = args[:icon_emoji] if args.key?(:icon_emoji) @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 |