Class: Google::Apis::AnalyticsdataV1alpha::OrderBy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/analyticsdata_v1alpha/classes.rb,
generated/google/apis/analyticsdata_v1alpha/representations.rb,
generated/google/apis/analyticsdata_v1alpha/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.



1001
1002
1003
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1001

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)


983
984
985
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 983

def desc
  @desc
end

#dimensionGoogle::Apis::AnalyticsdataV1alpha::DimensionOrderBy

Sorts by dimension values. Corresponds to the JSON property dimension



989
990
991
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 989

def dimension
  @dimension
end

#metricGoogle::Apis::AnalyticsdataV1alpha::MetricOrderBy

Sorts by metric values. Corresponds to the JSON property metric



994
995
996
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 994

def metric
  @metric
end

#pivotGoogle::Apis::AnalyticsdataV1alpha::PivotOrderBy

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



999
1000
1001
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 999

def pivot
  @pivot
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1006
1007
1008
1009
1010
1011
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1006

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