Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleIgnoreAction

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

Overview

Prevents a term in the query from being used in search. Example: Don't search for "shoddy".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaRuleIgnoreAction

Returns a new instance of GoogleCloudRetailV2alphaRuleIgnoreAction.



6313
6314
6315
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6313

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

Instance Attribute Details

#ignore_termsArray<String>

Terms to ignore in the search query. Corresponds to the JSON property ignoreTerms

Returns:

  • (Array<String>)


6311
6312
6313
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6311

def ignore_terms
  @ignore_terms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6318
6319
6320
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6318

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