Class: Google::Apis::KeepV1::Section

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

The content of the note.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Section

Returns a new instance of Section.



412
413
414
# File 'lib/google/apis/keep_v1/classes.rb', line 412

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#listGoogle::Apis::KeepV1::ListContent

The list of items for a single list note. Corresponds to the JSON property list



405
406
407
# File 'lib/google/apis/keep_v1/classes.rb', line 405

def list
  @list
end

#textGoogle::Apis::KeepV1::TextContent

The block of text for a single text section or list item. Corresponds to the JSON property text



410
411
412
# File 'lib/google/apis/keep_v1/classes.rb', line 410

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



417
418
419
420
# File 'lib/google/apis/keep_v1/classes.rb', line 417

def update!(**args)
  @list = args[:list] if args.key?(:list)
  @text = args[:text] if args.key?(:text)
end