Class: Google::Apis::AnalyticsdataV1beta::Comparison

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

Overview

Defines an individual comparison. Most requests will include multiple comparisons so that the report compares between the comparisons.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Comparison

Returns a new instance of Comparison.



541
542
543
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 541

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

Instance Attribute Details

#comparisonString

A saved comparison identified by the comparison's resource name. For example, ' comparisons/1234'. Corresponds to the JSON property comparison

Returns:

  • (String)


526
527
528
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 526

def comparison
  @comparison
end

#dimension_filterGoogle::Apis::AnalyticsdataV1beta::FilterExpression

To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics. Corresponds to the JSON property dimensionFilter



532
533
534
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 532

def dimension_filter
  @dimension_filter
end

#nameString

Each comparison produces separate rows in the response. In the response, this comparison is identified by this name. If name is unspecified, we will use the saved comparisons display name. Corresponds to the JSON property name

Returns:

  • (String)


539
540
541
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 539

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



546
547
548
549
550
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 546

def update!(**args)
  @comparison = args[:comparison] if args.key?(:comparison)
  @dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter)
  @name = args[:name] if args.key?(:name)
end