Class: Google::Apis::DisplayvideoV4::AlgorithmRulesRuleset

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v4/classes.rb,
lib/google/apis/displayvideo_v4/representations.rb,
lib/google/apis/displayvideo_v4/representations.rb

Overview

A ruleset consisting of a list of rules and how to aggregate the resulting values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AlgorithmRulesRuleset

Returns a new instance of AlgorithmRulesRuleset.



1832
1833
1834
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1832

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aggregation_typeString

How to aggregate values of evaluated rules. Corresponds to the JSON property aggregationType

Returns:

  • (String)


1820
1821
1822
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1820

def aggregation_type
  @aggregation_type
end

#max_valueFloat

Maximum value the ruleset can evaluate to. Corresponds to the JSON property maxValue

Returns:

  • (Float)


1825
1826
1827
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1825

def max_value
  @max_value
end

#rulesArray<Google::Apis::DisplayvideoV4::AlgorithmRulesRule>

List of rules to generate the impression value. Corresponds to the JSON property rules



1830
1831
1832
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1830

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1837
1838
1839
1840
1841
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1837

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