Class: Google::Apis::AnalyticsdataV1alpha::OrderBy
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1alpha::OrderBy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsdata_v1alpha/classes.rb,
lib/google/apis/analyticsdata_v1alpha/representations.rb,
lib/google/apis/analyticsdata_v1alpha/representations.rb
Overview
The sort options.
Instance Attribute Summary collapse
-
#desc ⇒ Boolean
(also: #desc?)
If true, sorts by descending order.
-
#dimension ⇒ Google::Apis::AnalyticsdataV1alpha::DimensionOrderBy
Sorts by dimension values.
-
#metric ⇒ Google::Apis::AnalyticsdataV1alpha::MetricOrderBy
Sorts by metric values.
-
#pivot ⇒ Google::Apis::AnalyticsdataV1alpha::PivotOrderBy
Sorts by a pivot column group.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderBy
constructor
A new instance of OrderBy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderBy
Returns a new instance of OrderBy.
1002 1003 1004 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 1002 def initialize(**args) update!(**args) end |
Instance Attribute Details
#desc ⇒ Boolean Also known as: desc?
If true, sorts by descending order.
Corresponds to the JSON property desc
984 985 986 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 984 def desc @desc end |
#dimension ⇒ Google::Apis::AnalyticsdataV1alpha::DimensionOrderBy
Sorts by dimension values.
Corresponds to the JSON property dimension
990 991 992 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 990 def dimension @dimension end |
#metric ⇒ Google::Apis::AnalyticsdataV1alpha::MetricOrderBy
Sorts by metric values.
Corresponds to the JSON property metric
995 996 997 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 995 def metric @metric end |
#pivot ⇒ Google::Apis::AnalyticsdataV1alpha::PivotOrderBy
Sorts by a pivot column group.
Corresponds to the JSON property pivot
1000 1001 1002 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 1000 def pivot @pivot end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1007 1008 1009 1010 1011 1012 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 1007 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 |