Class: Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RepricingRuleEligibleOfferMatcherStringMatcher
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Matcher by string attributes.
Instance Attribute Summary collapse
-
#str_attributes ⇒ Array<String>
String attributes, as long as such attribute of an offer is one of the string attribute values, the offer is considered as passing the matcher.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RepricingRuleEligibleOfferMatcherStringMatcher
constructor
A new instance of RepricingRuleEligibleOfferMatcherStringMatcher.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RepricingRuleEligibleOfferMatcherStringMatcher
Returns a new instance of RepricingRuleEligibleOfferMatcherStringMatcher.
12567 12568 12569 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12567 def initialize(**args) update!(**args) end |
Instance Attribute Details
#str_attributes ⇒ Array<String>
String attributes, as long as such attribute of an offer is one of the string
attribute values, the offer is considered as passing the matcher. The string
matcher checks an offer for inclusivity in the string attributes, not equality.
Only literal string matching is supported, no regex.
Corresponds to the JSON property strAttributes
12565 12566 12567 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12565 def str_attributes @str_attributes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12572 12573 12574 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12572 def update!(**args) @str_attributes = args[:str_attributes] if args.key?(:str_attributes) end |