Class: Google::Apis::DisplayvideoV4::AlgorithmRulesSignalComparison
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV4::AlgorithmRulesSignalComparison
- 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 single comparison. The comparison compares the signal to the
comparisonValue. The comparison of siteId==123 is represented with the
following field values: * signal has an impressionSignal of SITE_ID. *
comparisonOperator is set to EQUAL. * comparisonValue is set to 123.
Instance Attribute Summary collapse
-
#comparison_operator ⇒ String
Operator used to compare the two values.
-
#comparison_value ⇒ Google::Apis::DisplayvideoV4::AlgorithmRulesComparisonValue
A value to compare the signal to.
-
#signal ⇒ Google::Apis::DisplayvideoV4::AlgorithmRulesSignal
Signal used to evaluate rules.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AlgorithmRulesSignalComparison
constructor
A new instance of AlgorithmRulesSignalComparison.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AlgorithmRulesSignalComparison
Returns a new instance of AlgorithmRulesSignalComparison.
1899 1900 1901 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1899 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comparison_operator ⇒ String
Operator used to compare the two values. In the resulting experession, the
signal will be the first value and the comparisonValue will be the second.
Corresponds to the JSON propertycomparisonOperator`
1887 1888 1889 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1887 def comparison_operator @comparison_operator end |
#comparison_value ⇒ Google::Apis::DisplayvideoV4::AlgorithmRulesComparisonValue
A value to compare the signal to.
Corresponds to the JSON property comparisonValue
1892 1893 1894 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1892 def comparison_value @comparison_value end |
#signal ⇒ Google::Apis::DisplayvideoV4::AlgorithmRulesSignal
Signal used to evaluate rules.
Corresponds to the JSON property signal
1897 1898 1899 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1897 def signal @signal end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1904 1905 1906 1907 1908 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 1904 def update!(**args) @comparison_operator = args[:comparison_operator] if args.key?(:comparison_operator) @comparison_value = args[:comparison_value] if args.key?(:comparison_value) @signal = args[:signal] if args.key?(:signal) end |