Class: Google::Apis::SheetsV4::SortSpec
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::SortSpec
- 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
-
#dimension_index ⇒ Fixnum
The dimension the sort should be applied to.
-
#sort_order ⇒ String
The order data should be sorted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SortSpec
constructor
A new instance of SortSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SortSpec
Returns a new instance of SortSpec
7203 7204 7205 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7203 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dimension_index ⇒ Fixnum
The dimension the sort should be applied to.
Corresponds to the JSON property dimensionIndex
7196 7197 7198 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7196 def dimension_index @dimension_index end |
#sort_order ⇒ String
The order data should be sorted.
Corresponds to the JSON property sortOrder
7201 7202 7203 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7201 def sort_order @sort_order end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7208 7209 7210 7211 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 7208 def update!(**args) @dimension_index = args[:dimension_index] if args.key?(:dimension_index) @sort_order = args[:sort_order] if args.key?(:sort_order) end |