Class: Google::Apis::AnalyticsdataV1beta::PivotOrderBy

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

Sorts by a pivot column group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PivotOrderBy

Returns a new instance of PivotOrderBy.



1541
1542
1543
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1541

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

Instance Attribute Details

#metric_nameString

In the response to order by, order rows by this column. Must be a metric name from the request. Corresponds to the JSON property metricName

Returns:

  • (String)


1532
1533
1534
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1532

def metric_name
  @metric_name
end

#pivot_selectionsArray<Google::Apis::AnalyticsdataV1beta::PivotSelection>

Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair. Corresponds to the JSON property pivotSelections



1539
1540
1541
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1539

def pivot_selections
  @pivot_selections
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1546
1547
1548
1549
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1546

def update!(**args)
  @metric_name = args[:metric_name] if args.key?(:metric_name)
  @pivot_selections = args[:pivot_selections] if args.key?(:pivot_selections)
end