Class: Google::Apis::AnalyticsreportingV4::OrderBy

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

Overview

Specifies the sorting options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderBy

Returns a new instance of OrderBy



675
676
677
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 675

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

Instance Attribute Details

#field_nameString

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

Returns:

  • (String)


668
669
670
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 668

def field_name
  @field_name
end

#order_typeString

The order type. The default orderType is VALUE. Corresponds to the JSON property orderType

Returns:

  • (String)


673
674
675
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 673

def order_type
  @order_type
end

#sort_orderString

The sorting order for the field. Corresponds to the JSON property sortOrder

Returns:

  • (String)


660
661
662
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 660

def sort_order
  @sort_order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



680
681
682
683
684
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 680

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