Class: Google::Apis::KeepV1::TextContent

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 block of text for a single text section or list item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextContent

Returns a new instance of TextContent.



433
434
435
# File 'lib/google/apis/keep_v1/classes.rb', line 433

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

Instance Attribute Details

#textString

The text of the note. The limits on this vary with the specific field using this type. Corresponds to the JSON property text

Returns:

  • (String)


431
432
433
# File 'lib/google/apis/keep_v1/classes.rb', line 431

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



438
439
440
# File 'lib/google/apis/keep_v1/classes.rb', line 438

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