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.
228 229 230 |
# File 'lib/google/apis/keep_v1/classes.rb', line 228 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
214 215 216 |
# File 'lib/google/apis/keep_v1/classes.rb', line 214 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
221 222 223 |
# File 'lib/google/apis/keep_v1/classes.rb', line 221 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
226 227 228 |
# File 'lib/google/apis/keep_v1/classes.rb', line 226 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
233 234 235 236 237 |
# File 'lib/google/apis/keep_v1/classes.rb', line 233 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 |