class Google::Apis::AnalyticsreportingV4::OrderBy

Specifies the sorting options.

Attributes

field_name[RW]

The field which to sort by. The default sort order is ascending. Example: `ga: browser`. Note, that you can only specify one field for sort here. For example, `ga:browser, ga:city` is not valid. Corresponds to the JSON property `fieldName` @return [String]

order_type[RW]

The order type. The default orderType is `VALUE`. Corresponds to the JSON property `orderType` @return [String]

sort_order[RW]

The sorting order for the field. Corresponds to the JSON property `sortOrder` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 933
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/analyticsreporting_v4/classes.rb, line 938
def update!(**args)
  @field_name = args[:field_name] if args.key?(:field_name)
  @order_type = args[:order_type] if args.key?(:order_type)
  @sort_order = args[:sort_order] if args.key?(:sort_order)
end