Class: Google::Apis::DocsV1::SubstringMatchCriteria
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::SubstringMatchCriteria
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb
Overview
A criteria that matches a specific string of text in the document.
Instance Attribute Summary collapse
-
#match_case ⇒ Boolean
(also: #match_case?)
Indicates whether the search should respect case: -
True
: the search is case sensitive. -
#text ⇒ String
The text to search for in the document.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SubstringMatchCriteria
constructor
A new instance of SubstringMatchCriteria.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SubstringMatchCriteria
Returns a new instance of SubstringMatchCriteria.
4604 4605 4606 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4604 def initialize(**args) update!(**args) end |
Instance Attribute Details
#match_case ⇒ Boolean 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
4596 4597 4598 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4596 def match_case @match_case end |
#text ⇒ String
The text to search for in the document.
Corresponds to the JSON property text
4602 4603 4604 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4602 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4609 4610 4611 4612 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4609 def update!(**args) @match_case = args[:match_case] if args.key?(:match_case) @text = args[:text] if args.key?(:text) end |