Class: Google::Apis::KeepV1::ListItem
- Inherits:
-
Object
- Object
- Google::Apis::KeepV1::ListItem
- 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
A single list item in a note's list.
Instance Attribute Summary collapse
-
#checked ⇒ Boolean
(also: #checked?)
Whether this item has been checked off or not.
-
#child_list_items ⇒ Array<Google::Apis::KeepV1::ListItem>
If set, list of list items nested under this list item.
-
#text ⇒ Google::Apis::KeepV1::TextContent
The block of text for a single text section or list item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListItem
constructor
A new instance of ListItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListItem
Returns a new instance of ListItem.
227 228 229 |
# File 'lib/google/apis/keep_v1/classes.rb', line 227 def initialize(**args) update!(**args) end |
Instance Attribute Details
#checked ⇒ Boolean Also known as: checked?
Whether this item has been checked off or not.
Corresponds to the JSON property checked
213 214 215 |
# File 'lib/google/apis/keep_v1/classes.rb', line 213 def checked @checked end |
#child_list_items ⇒ Array<Google::Apis::KeepV1::ListItem>
If set, list of list items nested under this list item. Only one level of
nesting is allowed.
Corresponds to the JSON property childListItems
220 221 222 |
# File 'lib/google/apis/keep_v1/classes.rb', line 220 def child_list_items @child_list_items end |
#text ⇒ Google::Apis::KeepV1::TextContent
The block of text for a single text section or list item.
Corresponds to the JSON property text
225 226 227 |
# File 'lib/google/apis/keep_v1/classes.rb', line 225 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
232 233 234 235 236 |
# File 'lib/google/apis/keep_v1/classes.rb', line 232 def update!(**args) @checked = args[:checked] if args.key?(:checked) @child_list_items = args[:child_list_items] if args.key?(:child_list_items) @text = args[:text] if args.key?(:text) end |