Sha256: 2f4bd90cd679bdd90f6b40b17091b13e4850adbbe1ee2870c3792c4365473247

Contents?: true

Size: 499 Bytes

Versions: 26

Compression:

Stored size: 499 Bytes

Contents

module DataCatalog

  class Usage
  
    include MongoMapper::EmbeddedDocument

    # == Attributes

    key :title,       String
    key :url,         String
    key :description, String

    # == Indices

    # == Associations

    # == Validations

    # TODO: As of 2009-10-29, MongoMapper does not support validations on
    # EmbeddedDocuments.
    # 
    # validates_presence_of :title
    # validates_presence_of :url
  
    # == Class Methods

    # == Various Instance Methods

  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
sinatra_resource-0.4.21 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.20 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.19 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.18 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.17 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.16 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.15 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.14 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.13 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.12 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.11 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.10 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.9 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.8 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.7 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.6 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.5 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.4 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.3 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.2 examples/datacatalog/models/usage.rb