Class: Google::Apis::AnalyticsdataV1beta::OrderBy

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

The sort options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderBy

Returns a new instance of OrderBy.



1025
1026
1027
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1025

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

Instance Attribute Details

#descBoolean Also known as: desc?

If true, sorts by descending order. Corresponds to the JSON property desc

Returns:

  • (Boolean)


1007
1008
1009
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1007

def desc
  @desc
end

#dimensionGoogle::Apis::AnalyticsdataV1beta::DimensionOrderBy

Sorts by dimension values. Corresponds to the JSON property dimension



1013
1014
1015
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1013

def dimension
  @dimension
end

#metricGoogle::Apis::AnalyticsdataV1beta::MetricOrderBy

Sorts by metric values. Corresponds to the JSON property metric



1018
1019
1020
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1018

def metric
  @metric
end

#pivotGoogle::Apis::AnalyticsdataV1beta::PivotOrderBy

Sorts by a pivot column group. Corresponds to the JSON property pivot



1023
1024
1025
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1023

def pivot
  @pivot
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1030
1031
1032
1033
1034
1035
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1030

def update!(**args)
  @desc = args[:desc] if args.key?(:desc)
  @dimension = args[:dimension] if args.key?(:dimension)
  @metric = args[:metric] if args.key?(:metric)
  @pivot = args[:pivot] if args.key?(:pivot)
end