Class: Google::Apis::AnalyticsdataV1beta::OrderBy
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1beta::OrderBy
- 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
-
#desc ⇒ Boolean
(also: #desc?)
If true, sorts by descending order.
-
#dimension ⇒ Google::Apis::AnalyticsdataV1beta::DimensionOrderBy
Sorts by dimension values.
-
#metric ⇒ Google::Apis::AnalyticsdataV1beta::MetricOrderBy
Sorts by metric values.
-
#pivot ⇒ Google::Apis::AnalyticsdataV1beta::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.
1168 1169 1170 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1168 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
1150 1151 1152 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1150 def desc @desc end |
#dimension ⇒ Google::Apis::AnalyticsdataV1beta::DimensionOrderBy
Sorts by dimension values.
Corresponds to the JSON property dimension
1156 1157 1158 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1156 def dimension @dimension end |
#metric ⇒ Google::Apis::AnalyticsdataV1beta::MetricOrderBy
Sorts by metric values.
Corresponds to the JSON property metric
1161 1162 1163 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1161 def metric @metric end |
#pivot ⇒ Google::Apis::AnalyticsdataV1beta::PivotOrderBy
Sorts by a pivot column group.
Corresponds to the JSON property pivot
1166 1167 1168 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1166 def pivot @pivot end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1173 1174 1175 1176 1177 1178 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1173 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 |