Method: Dynamoid::Errors::InvalidIndex#initialize

Defined in:
lib/dynamoid/errors.rb

#initialize(item) ⇒ InvalidIndex

Returns a new instance of InvalidIndex.



17
18
19
20
21
22
23
# File 'lib/dynamoid/errors.rb', line 17

def initialize(item)
  if item.is_a? String
    super
  else
    super("Validation failed: #{item.errors.full_messages.join(', ')}")
  end
end