Sha256: e3572d5a85798feaacdbc6a3672fbe09ac5ab632856882c32fe59a7be1a3d128

Contents?: true

Size: 403 Bytes

Versions: 5

Compression:

Stored size: 403 Bytes

Contents

require 'pathname'
require Pathname(__FILE__).dirname.parent.expand_path + 'lib/rest_adapter'

DataMapper.setup(:default, {
  :adapter  => 'rest',
  :format => 'xml',
  :host => 'localhost',
  :port => '3001'
})

class Book
  include DataMapper::Resource
  property :author,     String
  property :created_at, DateTime
  property :id,         Integer, :serial => true
  property :title,      String
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dm-rest-adapter-0.9.3 spec/spec_helper.rb
dm-rest-adapter-0.9.4 spec/spec_helper.rb
dm-rest-adapter-0.9.5 spec/spec_helper.rb
dm-rest-adapter-0.9.6 spec/spec_helper.rb
dm-rest-adapter-0.9.7 spec/spec_helper.rb