Exception: DataMapper::YS::InvalidIndex
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- DataMapper::YS::InvalidIndex
- Defined in:
- lib/dm-ys/indexed_property.rb
Overview
Example
Class Foo
include DataMapper::YS
property :id, Serial
foo = Foo.new
foo[0] == foo[:id] == foo["id"] == foo.attributes[:id]