Class: Google::Apis::DisplayvideoV3::AlgorithmRulesRuleset
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV3::AlgorithmRulesRuleset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v3/classes.rb,
lib/google/apis/displayvideo_v3/representations.rb,
lib/google/apis/displayvideo_v3/representations.rb
Overview
A ruleset consisting of a list of rules and how to aggregate the resulting values.
Instance Attribute Summary collapse
-
#aggregation_type ⇒ String
How to aggregate values of evaluated rules.
-
#max_value ⇒ Float
Maximum value the ruleset can evaluate to.
-
#rules ⇒ Array<Google::Apis::DisplayvideoV3::AlgorithmRulesRule>
List of rules to generate the impression value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AlgorithmRulesRuleset
constructor
A new instance of AlgorithmRulesRuleset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AlgorithmRulesRuleset
Returns a new instance of AlgorithmRulesRuleset.
978 979 980 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 978 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregation_type ⇒ String
How to aggregate values of evaluated rules.
Corresponds to the JSON property aggregationType
966 967 968 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 966 def aggregation_type @aggregation_type end |
#max_value ⇒ Float
Maximum value the ruleset can evaluate to.
Corresponds to the JSON property maxValue
971 972 973 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 971 def max_value @max_value end |
#rules ⇒ Array<Google::Apis::DisplayvideoV3::AlgorithmRulesRule>
List of rules to generate the impression value.
Corresponds to the JSON property rules
976 977 978 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 976 def rules @rules end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
983 984 985 986 987 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 983 def update!(**args) @aggregation_type = args[:aggregation_type] if args.key?(:aggregation_type) @max_value = args[:max_value] if args.key?(:max_value) @rules = args[:rules] if args.key?(:rules) end |