Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMatchingCondition
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMatchingCondition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb
Overview
Defines a condition for when an Event Edit or Event Creation rule applies to an event.
Instance Attribute Summary collapse
-
#comparison_type ⇒ String
Required.
-
#field ⇒ String
Required.
-
#negated ⇒ Boolean
(also: #negated?)
Whether or not the result of the comparison should be negated.
-
#value ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaMatchingCondition
constructor
A new instance of GoogleAnalyticsAdminV1alphaMatchingCondition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaMatchingCondition
Returns a new instance of GoogleAnalyticsAdminV1alphaMatchingCondition.
4508 4509 4510 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4508 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comparison_type ⇒ String
Required. The type of comparison to be applied to the value.
Corresponds to the JSON property comparisonType
4484 4485 4486 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4484 def comparison_type @comparison_type end |
#field ⇒ String
Required. The name of the field that is compared against for the condition. If
'event_name' is specified this condition will apply to the name of the event.
Otherwise the condition will apply to a parameter with the specified name.
This value cannot contain spaces.
Corresponds to the JSON property field
4492 4493 4494 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4492 def field @field end |
#negated ⇒ Boolean Also known as: negated?
Whether or not the result of the comparison should be negated. For example, if
negated
is true, then 'equals' comparisons would function as 'not equals'.
Corresponds to the JSON property negated
4498 4499 4500 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4498 def negated @negated end |
#value ⇒ String
Required. The value being compared against for this condition. The runtime
implementation may perform type coercion of this value to evaluate this
condition based on the type of the parameter value.
Corresponds to the JSON property value
4506 4507 4508 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4506 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4513 4514 4515 4516 4517 4518 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 4513 def update!(**args) @comparison_type = args[:comparison_type] if args.key?(:comparison_type) @field = args[:field] if args.key?(:field) @negated = args[:negated] if args.key?(:negated) @value = args[:value] if args.key?(:value) end |