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

Version Path
toystore-0.13.0 examples/riak.rb
toystore-0.12.0 examples/riak.rb
toystore-0.11.0 examples/riak.rb
toystore-0.10.4 examples/riak.rb
toystore-0.10.3 examples/riak.rb
toystore-0.10.2 examples/riak.rb
toystore-0.10.1 examples/riak.rb
toystore-0.10.0 examples/riak.rb
toystore-0.9.0 examples/riak.rb