class Google::Apis::KeepV1::ListItem

A single list item in a note's list.

Attributes

checked[RW]

Whether this item has been checked off or not. Corresponds to the JSON property `checked` @return [Boolean]

checked?[RW]

Whether this item has been checked off or not. Corresponds to the JSON property `checked` @return [Boolean]

child_list_items[RW]

If set, list of list items nested under this list item. Only one level of nesting is allowed. Corresponds to the JSON property `childListItems` @return [Array<Google::Apis::KeepV1::ListItem>]

text[RW]

The block of text for a single text section or list item. Corresponds to the JSON property `text` @return [Google::Apis::KeepV1::TextContent]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/keep_v1/classes.rb, line 228
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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