Class: Google::Apis::DocsV1::SubstringMatchCriteria

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

Overview

A criteria that matches a specific string of text in the document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SubstringMatchCriteria

Returns a new instance of SubstringMatchCriteria.



5194
5195
5196
# File 'lib/google/apis/docs_v1/classes.rb', line 5194

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

Instance Attribute Details

#match_caseBoolean Also known as: match_case?

Indicates whether the search should respect case: - True: the search is case sensitive. - False: the search is case insensitive. Corresponds to the JSON property matchCase

Returns:

  • (Boolean)


5186
5187
5188
# File 'lib/google/apis/docs_v1/classes.rb', line 5186

def match_case
  @match_case
end

#textString

The text to search for in the document. Corresponds to the JSON property text

Returns:

  • (String)


5192
5193
5194
# File 'lib/google/apis/docs_v1/classes.rb', line 5192

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5199
5200
5201
5202
# File 'lib/google/apis/docs_v1/classes.rb', line 5199

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