Class: Google::Apis::AnalyticsdataV1beta::DimensionOrderBy

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 dimension values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DimensionOrderBy

Returns a new instance of DimensionOrderBy.



652
653
654
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 652

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

Instance Attribute Details

#dimension_nameString

A dimension name in the request to order by. Corresponds to the JSON property dimensionName

Returns:

  • (String)


645
646
647
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 645

def dimension_name
  @dimension_name
end

#order_typeString

Controls the rule for dimension value ordering. Corresponds to the JSON property orderType

Returns:

  • (String)


650
651
652
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 650

def order_type
  @order_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



657
658
659
660
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 657

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