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
Order bys define how rows will be sorted in the response. For example, ordering rows by descending event count is one ordering, and ordering rows by the event name string is a different ordering.
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.
1221 1222 1223 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1221 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
1203 1204 1205 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1203 def desc @desc end |
#dimension ⇒ Google::Apis::AnalyticsdataV1beta::DimensionOrderBy
Sorts by dimension values.
Corresponds to the JSON property dimension
1209 1210 1211 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1209 def dimension @dimension end |
#metric ⇒ Google::Apis::AnalyticsdataV1beta::MetricOrderBy
Sorts by metric values.
Corresponds to the JSON property metric
1214 1215 1216 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1214 def metric @metric end |
#pivot ⇒ Google::Apis::AnalyticsdataV1beta::PivotOrderBy
Sorts by a pivot column group.
Corresponds to the JSON property pivot
1219 1220 1221 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1219 def pivot @pivot end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1226 1227 1228 1229 1230 1231 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1226 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 |