Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessOrderBy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb

Overview

Order bys define how rows will be sorted in the response. For example, ordering rows by descending access count is one ordering, and ordering rows by the country string is a different ordering.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaAccessOrderBy

Returns a new instance of GoogleAnalyticsAdminV1alphaAccessOrderBy.



424
425
426
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 424

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

Instance Attribute Details

#descBoolean Also known as: desc?

If true, sorts by descending order. If false or unspecified, sorts in ascending order. Corresponds to the JSON property desc

Returns:

  • (Boolean)


411
412
413
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 411

def desc
  @desc
end

#dimensionGoogle::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy

Sorts by dimension values. Corresponds to the JSON property dimension



417
418
419
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 417

def dimension
  @dimension
end

#metricGoogle::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy

Sorts by metric values. Corresponds to the JSON property metric



422
423
424
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 422

def metric
  @metric
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



429
430
431
432
433
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 429

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