Sha256: 1eaeb85bb33045b800be836bb7f67a73d031c3efc445d5ab762b9f5a116b7200

Contents?: true

Size: 505 Bytes

Versions: 3

Compression:

Stored size: 505 Bytes

Contents

module DataCatalog

  class SourcesUsages < Base
    include Resource

    parent Sources
    child_association :usages
    model Usage
    path "usages"

    # == Permissions

    roles Roles
    permission :list   => :basic
    permission :read   => :basic
    permission :create => :curator
    permission :update => :curator
    permission :delete => :curator

    # == Properties

    property :title
    property :url
    property :description

    # == Callbacks

  end

  SourcesUsages.build

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sinatra_resource-0.4.24 examples/datacatalog/resources/sources_usages.rb
sinatra_resource-0.4.23 examples/datacatalog/resources/sources_usages.rb
sinatra_resource-0.4.22 examples/datacatalog/resources/sources_usages.rb