Sha256: 5ec198481b9bfbb5cd64ea2df38185c9bc6f64e08e26b5ab290a48db7a720898
Contents?: true
Size: 406 Bytes
Versions: 9
Compression:
Stored size: 406 Bytes
Contents
require 'pp' require 'pathname' require 'rubygems' require 'adapter/redis' root_path = Pathname(__FILE__).dirname.join('..').expand_path lib_path = root_path.join('lib') $:.unshift(lib_path) require 'toystore' class User include Toy::Store adapter :redis, Redis.new 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
9 entries across 9 versions & 1 rubygems