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:
- 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
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.
11926 11927 11928 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11926 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
11917 11918 11919 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11917 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
11924 11925 11926 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11924 def price_delta @price_delta end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11931 11932 11933 11934 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11931 def update!(**args) @percentage_delta = args[:percentage_delta] if args.key?(:percentage_delta) @price_delta = args[:price_delta] if args.key?(:price_delta) end |