Class: Google::Apis::SheetsV4::SortSpec

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

Overview

A sort order associated with a specific column or row.

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) ⇒ SortSpec

Returns a new instance of SortSpec



8487
8488
8489
# File 'generated/google/apis/sheets_v4/classes.rb', line 8487

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

Instance Attribute Details

#dimension_indexFixnum

The dimension the sort should be applied to. Corresponds to the JSON property dimensionIndex

Returns:

  • (Fixnum)


8480
8481
8482
# File 'generated/google/apis/sheets_v4/classes.rb', line 8480

def dimension_index
  @dimension_index
end

#sort_orderString

The order data should be sorted. Corresponds to the JSON property sortOrder

Returns:

  • (String)


8485
8486
8487
# File 'generated/google/apis/sheets_v4/classes.rb', line 8485

def sort_order
  @sort_order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8492
8493
8494
8495
# File 'generated/google/apis/sheets_v4/classes.rb', line 8492

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