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.1 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.0 examples/datacatalog/models/usage.rb
sinatra_resource-0.3.6 examples/datacatalog/models/usage.rb
sinatra_resource-0.3.5 examples/datacatalog/models/usage.rb
sinatra_resource-0.3.4 examples/datacatalog/models/usage.rb
sinatra_resource-0.3.3 examples/datacatalog/models/usage.rb