Sha256: ddda0fda961058093bd77a76772bacd6dee4a7c4a460d65d91a544d8339546d5
Contents?: true
Size: 456 Bytes
Versions: 10
Compression:
Stored size: 456 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 store :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
10 entries across 10 versions & 1 rubygems