Exception: Elasticity::Strategies::IndexError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/elasticity/strategies.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index_base_name, message) ⇒ IndexError

Returns a new instance of IndexError.



6
7
8
9
# File 'lib/elasticity/strategies.rb', line 6

def initialize(index_base_name, message)
  @index_base_name = index_base_name
  super("#{index_base_name}: #{message}")
end

Instance Attribute Details

#index_base_nameObject (readonly)

Returns the value of attribute index_base_name.



4
5
6
# File 'lib/elasticity/strategies.rb', line 4

def index_base_name
  @index_base_name
end