Class: Google::Apis::DisplayvideoV3::AlgorithmRulesSignalComparison

Inherits:
Object
  • Object
show all
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 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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AlgorithmRulesSignalComparison

Returns a new instance of AlgorithmRulesSignalComparison.



1032
1033
1034
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1032

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

Instance Attribute Details

#comparison_operatorString

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`

Returns:

  • (String)


1020
1021
1022
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1020

def comparison_operator
  @comparison_operator
end

#comparison_valueGoogle::Apis::DisplayvideoV3::AlgorithmRulesComparisonValue

A value to compare the signal to. Corresponds to the JSON property comparisonValue



1025
1026
1027
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1025

def comparison_value
  @comparison_value
end

#signalGoogle::Apis::DisplayvideoV3::AlgorithmRulesSignal

Signal used to evaluate rules. Corresponds to the JSON property signal



1030
1031
1032
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1030

def signal
  @signal
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1037
1038
1039
1040
1041
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1037

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