Class: Google::Apis::AnalyticsdataV1beta::MetricOrderBy

Inherits:
Object
  • Object
show all
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

Sorts by metric values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MetricOrderBy

Returns a new instance of MetricOrderBy.



1068
1069
1070
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1068

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#metric_nameString

A metric name in the request to order by. Corresponds to the JSON property metricName

Returns:

  • (String)


1066
1067
1068
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1066

def metric_name
  @metric_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1073
1074
1075
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1073

def update!(**args)
  @metric_name = args[:metric_name] if args.key?(:metric_name)
end