Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleIgnoreAction
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleIgnoreAction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb
Overview
Prevents a term in the query from being used in search. Example: Don't search for "shoddy".
Instance Attribute Summary collapse
-
#ignore_terms ⇒ Array<String>
Terms to ignore in the search query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaRuleIgnoreAction
constructor
A new instance of GoogleCloudRetailV2betaRuleIgnoreAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaRuleIgnoreAction
Returns a new instance of GoogleCloudRetailV2betaRuleIgnoreAction.
6741 6742 6743 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6741 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ignore_terms ⇒ Array<String>
Terms to ignore in the search query.
Corresponds to the JSON property ignoreTerms
6739 6740 6741 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6739 def ignore_terms @ignore_terms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6746 6747 6748 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6746 def update!(**args) @ignore_terms = args[:ignore_terms] if args.key?(:ignore_terms) end |