Sha256: 9f1700e59580f234391abe3ee86991137b2b27e968f88c4bbbf337d847d4454f
Contents?: true
Size: 458 Bytes
Versions: 9
Compression:
Stored size: 458 Bytes
Contents
require 'pp' require 'pathname' require 'rubygems' require 'adapter/riak' root_path = Pathname(__FILE__).dirname.join('..').expand_path lib_path = root_path.join('lib') $:.unshift(lib_path) require 'toystore' class GameList include Toy::Store adapter :riak, Riak::Client.new['adapter_example'] attribute :source, Hash end list = GameList.create(:source => {'foo' => 'bar'}) pp list pp GameList.get(list.id) list.destroy pp GameList.get(list.id)
Version data entries
9 entries across 9 versions & 1 rubygems