Sha256: a08d0d76ab9c12e8e321ec8c0b4dc966f699f76e04f3b6279d2024cec323d9bb

Contents?: true

Size: 495 Bytes

Versions: 3

Compression:

Stored size: 495 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

3 entries across 3 versions & 1 rubygems

Version Path
sinatra_resource-0.4.24 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.23 examples/datacatalog/models/usage.rb
sinatra_resource-0.4.22 examples/datacatalog/models/usage.rb