Class: Google::Apis::CloudsearchV1::SortOptions
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SortOptions
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#operator_name ⇒ String
The name of the operator corresponding to the field to sort on.
-
#sort_order ⇒ String
Ascending is the default sort order Corresponds to the JSON property
sortOrder.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SortOptions
constructor
A new instance of SortOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SortOptions
Returns a new instance of SortOptions.
16514 16515 16516 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16514 def initialize(**args) update!(**args) end |
Instance Attribute Details
#operator_name ⇒ String
The name of the operator corresponding to the field to sort on. The
corresponding property must be marked as sortable.
Corresponds to the JSON property operatorName
16507 16508 16509 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16507 def operator_name @operator_name end |
#sort_order ⇒ String
Ascending is the default sort order
Corresponds to the JSON property sortOrder
16512 16513 16514 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16512 def sort_order @sort_order end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16519 16520 16521 16522 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16519 def update!(**args) @operator_name = args[:operator_name] if args.key?(:operator_name) @sort_order = args[:sort_order] if args.key?(:sort_order) end |