Class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter

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

Overview

Dimension filter specifies the filtering options on a dimension.

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) ⇒ SegmentDimensionFilter

Returns a new instance of SegmentDimensionFilter.


327
328
329
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 327

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

Instance Attribute Details

#case_sensitiveBoolean Also known as: case_sensitive?

Should the match be case sensitive, ignored for IN_LIST operator. Corresponds to the JSON property caseSensitive

Returns:

  • (Boolean)

309
310
311
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 309

def case_sensitive
  @case_sensitive
end

#dimension_nameString

Name of the dimension for which the filter is being applied. Corresponds to the JSON property dimensionName

Returns:

  • (String)

304
305
306
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 304

def dimension_name
  @dimension_name
end

#expressionsArray<String>

The list of expressions, only the first element is used for all operators Corresponds to the JSON property expressions

Returns:

  • (Array<String>)

320
321
322
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 320

def expressions
  @expressions
end

#max_comparison_valueString

Maximum comparison values for BETWEEN match type. Corresponds to the JSON property maxComparisonValue

Returns:

  • (String)

299
300
301
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 299

def max_comparison_value
  @max_comparison_value
end

#min_comparison_valueString

Minimum comparison values for BETWEEN match type. Corresponds to the JSON property minComparisonValue

Returns:

  • (String)

325
326
327
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 325

def min_comparison_value
  @min_comparison_value
end

#operatorString

The operator to use to match the dimension with the expressions. Corresponds to the JSON property operator

Returns:

  • (String)

315
316
317
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 315

def operator
  @operator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


332
333
334
335
336
337
338
339
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 332

def update!(**args)
  @max_comparison_value = args[:max_comparison_value] if args.key?(:max_comparison_value)
  @dimension_name = args[:dimension_name] if args.key?(:dimension_name)
  @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive)
  @operator = args[:operator] if args.key?(:operator)
  @expressions = args[:expressions] if args.key?(:expressions)
  @min_comparison_value = args[:min_comparison_value] if args.key?(:min_comparison_value)
end