Class: Google::Apis::DocsV1::Bullet
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::Bullet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb
Overview
Describes the bullet of a paragraph.
Instance Attribute Summary collapse
-
#list_id ⇒ String
The ID of the list this paragraph belongs to.
-
#nesting_level ⇒ Fixnum
The nesting level of this paragraph in the list.
-
#text_style ⇒ Google::Apis::DocsV1::TextStyle
Represents the styling that can be applied to text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Bullet
constructor
A new instance of Bullet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Bullet
Returns a new instance of Bullet.
227 228 229 |
# File 'generated/google/apis/docs_v1/classes.rb', line 227 def initialize(**args) update!(**args) end |
Instance Attribute Details
#list_id ⇒ String
The ID of the list this paragraph belongs to.
Corresponds to the JSON property listId
206 207 208 |
# File 'generated/google/apis/docs_v1/classes.rb', line 206 def list_id @list_id end |
#nesting_level ⇒ Fixnum
The nesting level of this paragraph in the list.
Corresponds to the JSON property nestingLevel
211 212 213 |
# File 'generated/google/apis/docs_v1/classes.rb', line 211 def nesting_level @nesting_level end |
#text_style ⇒ Google::Apis::DocsV1::TextStyle
Represents the styling that can be applied to text. Inherited text styles are
represented as unset fields in this message. A text style's parent depends on
where the text style is defined: * The TextStyle of text in a Paragraph
inherits from the paragraph's corresponding named style type. * The TextStyle
on a named style inherits from the normal text named style. * The TextStyle of
the normal text named style inherits from the default text style in the Docs
editor. * The TextStyle on a Paragraph element that is contained in a table
may inherit its text style from the table style. If the text style does not
inherit from a parent, unsetting fields will revert the style to a value
matching the defaults in the Docs editor.
Corresponds to the JSON property textStyle
225 226 227 |
# File 'generated/google/apis/docs_v1/classes.rb', line 225 def text_style @text_style end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
232 233 234 235 236 |
# File 'generated/google/apis/docs_v1/classes.rb', line 232 def update!(**args) @list_id = args[:list_id] if args.key?(:list_id) @nesting_level = args[:nesting_level] if args.key?(:nesting_level) @text_style = args[:text_style] if args.key?(:text_style) end |