Exception: EasyRedis::FieldNotTextSearchable

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/easyredis.rb

Overview

exception that indicates that the given field has not been indexed for text-searching

Instance Method Summary collapse

Constructor Details

#initialize(field) ⇒ FieldNotTextSearchable

Returns a new instance of FieldNotTextSearchable.



77
78
79
# File 'lib/easyredis.rb', line 77

def initialize(field)
  @message = "field '#{field.to_s}' not text-searchable"
end

Instance Method Details

#to_sObject



81
82
83
# File 'lib/easyredis.rb', line 81

def to_s
  @message
end