Sha256: 94da016f1651f1d5acaa0d5702fa3a86e6069615ac512aa9e2387c7ef21239dd

Contents?: true

Size: 226 Bytes

Versions: 28

Compression:

Stored size: 226 Bytes

Contents

class Service < CouchRest::Model::Base
  # Set the default database to use
  use_database DB
  
  # Official Schema
  property :name
  property :price, Integer
  
  validates_length_of :name, :minimum => 4, :maximum => 20
end

Version data entries

28 entries across 28 versions & 4 rubygems

Version Path
couchrest_model-2.2.0.beta2 spec/fixtures/models/service.rb
couchrest_model-2.2.0.beta1 spec/fixtures/models/service.rb
couchrest_model-2.1.0.rc1 spec/fixtures/models/service.rb
couchrest_model-2.1.0.beta2 spec/fixtures/models/service.rb
couchrest_model-2.1.0.beta1 spec/fixtures/models/service.rb
couchrest_model-2.0.4 spec/fixtures/models/service.rb
couchrest_model-2.0.3 spec/fixtures/models/service.rb
couchrest_model-2.0.1 spec/fixtures/models/service.rb
couchrest_model-2.0.0 spec/fixtures/models/service.rb
couchrest_model-2.0.0.beta2 spec/fixtures/models/service.rb
couchrest_model-2.0.0.beta spec/fixtures/models/service.rb
couchrest_model-1.2.0.beta spec/fixtures/models/service.rb
openlogic-couchrest_model-1.0.0 spec/fixtures/models/service.rb
couchrest_model-1.1.2 spec/fixtures/models/service.rb
couchrest_model-1.1.1 spec/fixtures/models/service.rb
couchrest_model-1.1.0 spec/fixtures/models/service.rb
couchrest_model-1.1.0.rc1 spec/fixtures/more/service.rb
couchrest_model-1.1.0.beta5 spec/fixtures/more/service.rb
couchrest_model-1.1.0.beta4 spec/fixtures/more/service.rb
couchrest_model-1.1.0.beta3 spec/fixtures/more/service.rb