Class: Google::Apis::AnalyticsdataV1alpha::MetricOrderBy
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1alpha::MetricOrderBy
- 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
Sorts by metric values.
Instance Attribute Summary collapse
-
#metric_name ⇒ String
A metric name in the request to order by.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetricOrderBy
constructor
A new instance of MetricOrderBy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MetricOrderBy
Returns a new instance of MetricOrderBy.
897 898 899 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 897 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metric_name ⇒ String
A metric name in the request to order by.
Corresponds to the JSON property metricName
895 896 897 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 895 def metric_name @metric_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
902 903 904 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 902 def update!(**args) @metric_name = args[:metric_name] if args.key?(:metric_name) end |