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-1.1.0.beta2 spec/fixtures/more/service.rb
couchrest_model-1.1.0.beta spec/fixtures/more/service.rb
couchrest_model-1.0.0 spec/fixtures/more/service.rb
couchrest_model-radiant-1.0.0 spec/fixtures/more/service.rb
couchrest_model-1.0.0.beta8 spec/fixtures/more/service.rb
couchrest_model_thought-1.0.0.beta9 spec/fixtures/more/service.rb
couchrest_model_thought-1.0.0.beta8 spec/fixtures/more/service.rb
couchrest_model-1.0.0.beta7 spec/fixtures/more/service.rb