Class: Google::Apis::ContentV2_1::RepricingRuleStatsBasedRule
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RepricingRuleStatsBasedRule
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb
Overview
Definition of stats based rule.
Instance Attribute Summary collapse
-
#percentage_delta ⇒ Fixnum
The percent change against the price target.
-
#price_delta ⇒ String
The price delta against the above price target.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RepricingRuleStatsBasedRule
constructor
A new instance of RepricingRuleStatsBasedRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RepricingRuleStatsBasedRule
Returns a new instance of RepricingRuleStatsBasedRule.
11454 11455 11456 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11454 def initialize(**args) update!(**args) end |
Instance Attribute Details
#percentage_delta ⇒ Fixnum
The percent change against the price target. Valid from 0 to 100 inclusively.
Corresponds to the JSON property percentageDelta
11445 11446 11447 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11445 def percentage_delta @percentage_delta end |
#price_delta ⇒ String
The price delta against the above price target. A positive value means the
price should be adjusted to be above statistical measure, and a negative value
means below. Currency code must not be included.
Corresponds to the JSON property priceDelta
11452 11453 11454 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11452 def price_delta @price_delta end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11459 11460 11461 11462 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11459 def update!(**args) @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta) @price_delta = args[:price_delta] if args.key?(:price_delta) end |