Class: Google::Apis::AnalyticsreportingV4::OrderBy
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::OrderBy
- 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
-
#field_name ⇒ String
The field which to sort by.
-
#order_type ⇒ String
The order type.
-
#sort_order ⇒ String
The sorting order for the field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderBy
constructor
A new instance of OrderBy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrderBy
Returns a new instance of OrderBy.
747 748 749 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 747 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field_name ⇒ String
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
745 746 747 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 745 def field_name @field_name end |
#order_type ⇒ String
The order type. The default orderType is VALUE
.
Corresponds to the JSON property orderType
737 738 739 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 737 def order_type @order_type end |
#sort_order ⇒ String
The sorting order for the field.
Corresponds to the JSON property sortOrder
732 733 734 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 732 def sort_order @sort_order end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
752 753 754 755 756 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 752 def update!(**args) @sort_order = args[:sort_order] if args.key?(:sort_order) @order_type = args[:order_type] if args.key?(:order_type) @field_name = args[:field_name] if args.key?(:field_name) end |