Class: Google::Apis::RetailV2::GoogleCloudRetailV2RuleIgnoreAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/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) ⇒ GoogleCloudRetailV2RuleIgnoreAction

Returns a new instance of GoogleCloudRetailV2RuleIgnoreAction.



4338
4339
4340
# File 'lib/google/apis/retail_v2/classes.rb', line 4338

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>)


4336
4337
4338
# File 'lib/google/apis/retail_v2/classes.rb', line 4336

def ignore_terms
  @ignore_terms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4343
4344
4345
# File 'lib/google/apis/retail_v2/classes.rb', line 4343

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