Class: Google::Apis::KeepV1::ListItem

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#checkedBoolean Also known as: checked?

Whether this item has been checked off or not. Corresponds to the JSON property checked

Returns:

  • (Boolean)


214
215
216
# File 'lib/google/apis/keep_v1/classes.rb', line 214

def checked
  @checked
end

#child_list_itemsArray<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

Returns:



221
222
223
# File 'lib/google/apis/keep_v1/classes.rb', line 221

def child_list_items
  @child_list_items
end

#textGoogle::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