Class: Google::Apis::KeepV1::Section
- Inherits:
-
Object
- Object
- Google::Apis::KeepV1::Section
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/keep_v1/classes.rb,
lib/google/apis/keep_v1/representations.rb,
lib/google/apis/keep_v1/representations.rb
Overview
The content of the note.
Instance Attribute Summary collapse
-
#list ⇒ Google::Apis::KeepV1::ListContent
The list of items for a single list note.
-
#text ⇒ Google::Apis::KeepV1::TextContent
The block of text for a single text section or list item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Section
constructor
A new instance of Section.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Section
Returns a new instance of Section.
413 414 415 |
# File 'lib/google/apis/keep_v1/classes.rb', line 413 def initialize(**args) update!(**args) end |
Instance Attribute Details
#list ⇒ Google::Apis::KeepV1::ListContent
The list of items for a single list note.
Corresponds to the JSON property list
406 407 408 |
# File 'lib/google/apis/keep_v1/classes.rb', line 406 def list @list end |
#text ⇒ Google::Apis::KeepV1::TextContent
The block of text for a single text section or list item.
Corresponds to the JSON property text
411 412 413 |
# File 'lib/google/apis/keep_v1/classes.rb', line 411 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
418 419 420 421 |
# File 'lib/google/apis/keep_v1/classes.rb', line 418 def update!(**args) @list = args[:list] if args.key?(:list) @text = args[:text] if args.key?(:text) end |