Class: AzaharaSchema::FieldFormat::StringFormat

Inherits:
Base
  • Object
show all
Defined in:
lib/azahara_schema/field_format.rb

Direct Known Subclasses

ListFormat, TextFormat

Instance Method Summary collapse

Methods inherited from Base

#aggregable?

Instance Method Details

#available_operatorsObject



112
113
114
# File 'lib/azahara_schema/field_format.rb', line 112

def available_operators
  super.concat(['~'])
end

#sanitize_value(value) ⇒ Object



120
121
122
# File 'lib/azahara_schema/field_format.rb', line 120

def sanitize_value(value)
  value.to_s.presence
end

#searchable?Boolean

Returns:

  • (Boolean)


116
117
118
# File 'lib/azahara_schema/field_format.rb', line 116

def searchable?
  true
end