class RediSearch::Schema::GeoField
Attributes
no_index[R]
sortable[R]
Public Class Methods
new(name, sortable: false, no_index: false)
click to toggle source
# File lib/redi_search/schema/geo_field.rb, line 8 def initialize(name, sortable: false, no_index: false) @name = name @sortable = sortable @no_index = no_index end
Public Instance Methods
to_a()
click to toggle source
# File lib/redi_search/schema/geo_field.rb, line 14 def to_a query = [name.to_s, "GEO"] query += boolean_options_string query end
Private Instance Methods
boolean_options()
click to toggle source
# File lib/redi_search/schema/geo_field.rb, line 25 def boolean_options %i(sortable no_index) end