Class: Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaAccessOrderBy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticsadmin_v1beta/classes.rb,
lib/google/apis/analyticsadmin_v1beta/representations.rb,
lib/google/apis/analyticsadmin_v1beta/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) ⇒ GoogleAnalyticsAdminV1betaAccessOrderBy

Returns a new instance of GoogleAnalyticsAdminV1betaAccessOrderBy.



386
387
388
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 386

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)


373
374
375
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 373

def desc
  @desc
end

#dimensionGoogle::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaAccessOrderByDimensionOrderBy

Sorts by dimension values. Corresponds to the JSON property dimension



379
380
381
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 379

def dimension
  @dimension
end

#metricGoogle::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaAccessOrderByMetricOrderBy

Sorts by metric values. Corresponds to the JSON property metric



384
385
386
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 384

def metric
  @metric
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



391
392
393
394
395
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 391

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