Sha256: da813449ff7aa501c0fd04b0f9c1d1cd9c2f2f906b4175c307b7c03d7f8b63ca
Contents?: true
Size: 262 Bytes
Versions: 3
Compression:
Stored size: 262 Bytes
Contents
require 'pp' require 'rubygems' require 'toystore' require 'adapter/memory' class User include Toy::Store store :memory, {} attribute :name, String end user = User.create(:name => 'John') pp user pp User.get(user.id) user.destroy pp User.get(user.id)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
toystore-0.6.1 | examples/memory.rb |
toystore-0.6 | examples/memory.rb |
toystore-0.5 | examples/memory.rb |