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(item) else super("Validation failed: #{item.errors..join(", ")}") end end |