Class: Google::Apis::CloudsearchV1::SortOptions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SortOptions

Returns a new instance of SortOptions.



19242
19243
19244
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19242

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

Instance Attribute Details

#operator_nameString

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

Returns:

  • (String)


19235
19236
19237
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19235

def operator_name
  @operator_name
end

#sort_orderString

Ascending is the default sort order Corresponds to the JSON property sortOrder

Returns:

  • (String)


19240
19241
19242
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19240

def sort_order
  @sort_order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19247
19248
19249
19250
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19247

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