Class: Google::Apis::KeepV1::TextContent
- Inherits:
-
Object
- Object
- Google::Apis::KeepV1::TextContent
- 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
-
#text ⇒ String
The text of the note.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextContent
constructor
A new instance of TextContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#text ⇒ String
The text of the note. The limits on this vary with the specific field using
this type.
Corresponds to the JSON property text
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 |