Class: Google::Apis::AnalyticsV3::Goal::EventDetails::EventCondition

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EventCondition

Returns a new instance of EventCondition.


3055
3056
3057
# File 'generated/google/apis/analytics_v3/classes.rb', line 3055

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

Instance Attribute Details

#comparison_typeString

Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL. Corresponds to the JSON property comparisonType

Returns:

  • (String)

3031
3032
3033
# File 'generated/google/apis/analytics_v3/classes.rb', line 3031

def comparison_type
  @comparison_type
end

#comparison_valueFixnum

Value used for this comparison. Corresponds to the JSON property comparisonValue

Returns:

  • (Fixnum)

3036
3037
3038
# File 'generated/google/apis/analytics_v3/classes.rb', line 3036

def comparison_value
  @comparison_value
end

#expressionString

Expression used for this match. Corresponds to the JSON property expression

Returns:

  • (String)

3041
3042
3043
# File 'generated/google/apis/analytics_v3/classes.rb', line 3041

def expression
  @expression
end

#match_typeString

Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT. Corresponds to the JSON property matchType

Returns:

  • (String)

3047
3048
3049
# File 'generated/google/apis/analytics_v3/classes.rb', line 3047

def match_type
  @match_type
end

#typeString

Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE. Corresponds to the JSON property type

Returns:

  • (String)

3053
3054
3055
# File 'generated/google/apis/analytics_v3/classes.rb', line 3053

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3060
3061
3062
3063
3064
3065
3066
# File 'generated/google/apis/analytics_v3/classes.rb', line 3060

def update!(**args)
  @comparison_type = args[:comparison_type] if args.key?(:comparison_type)
  @comparison_value = args[:comparison_value] if args.key?(:comparison_value)
  @expression = args[:expression] if args.key?(:expression)
  @match_type = args[:match_type] if args.key?(:match_type)
  @type = args[:type] if args.key?(:type)
end