Sha256: 5a2cd094ecdaa94fbb80cb17e25711ddeb0c4af73a6d9cbfb7a3802b5416d282

Contents?: true

Size: 350 Bytes

Versions: 47

Compression:

Stored size: 350 Bytes

Contents

class Service < CouchRest::ExtendedDocument  
  # Include the validation module to get access to the validation methods
  include CouchRest::Validation
  auto_validate!
  # Set the default database to use
  use_database TEST_SERVER.default_database
  
  # Official Schema
  property :name, :length => 4...20
  property :price, :type => Integer
  
end

Version data entries

47 entries across 47 versions & 16 rubygems

Version Path
brianmario-couchrest-0.23 spec/fixtures/more/service.rb
gbuesing-couchrest-0.23 spec/fixtures/more/service.rb
glasner-couchrest-0.2.2 spec/fixtures/more/service.rb
gohanlonllc-couchrest-0.2.3.1 spec/fixtures/more/service.rb
halfninja-couchrest-0.23.2 spec/fixtures/more/service.rb
halfninja-couchrest-0.23.3 spec/fixtures/more/service.rb
jchris-couchrest-0.16 spec/fixtures/more/service.rb
jchris-couchrest-0.17.0 spec/fixtures/more/service.rb
jchris-couchrest-0.2.1 spec/fixtures/more/service.rb
jchris-couchrest-0.2.2 spec/fixtures/more/service.rb
jchris-couchrest-0.2 spec/fixtures/more/service.rb
jchris-couchrest-0.22 spec/fixtures/more/service.rb
jchris-couchrest-0.23 spec/fixtures/more/service.rb
jkestr-couchrest-0.23 spec/fixtures/more/service.rb
jpbougie-couchrest-0.27 spec/fixtures/more/service.rb
jrun-couchrest-0.17.1 spec/fixtures/more/service.rb
jrun-couchrest-0.2.1.1 spec/fixtures/more/service.rb
jrun-couchrest-0.2.1 spec/fixtures/more/service.rb
mattetti-couchrest-0.13.1 spec/fixtures/more/service.rb
mattetti-couchrest-0.13.2 spec/fixtures/more/service.rb