Class: Google::Apis::DriveV2::File::IndexableText

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb

Overview

Indexable text attributes for the file (can only be written)

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IndexableText

Returns a new instance of IndexableText.



2630
2631
2632
# File 'generated/google/apis/drive_v2/classes.rb', line 2630

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

Instance Attribute Details

#textString

The text to be indexed for this file. Corresponds to the JSON property text

Returns:

  • (String)


2628
2629
2630
# File 'generated/google/apis/drive_v2/classes.rb', line 2628

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2635
2636
2637
# File 'generated/google/apis/drive_v2/classes.rb', line 2635

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