Sha256: 2f6c6136f7e5a765eda2f3522e915e77c4b44a0881218b0d528b58e11942f1a0

Contents?: true

Size: 515 Bytes

Versions: 26

Compression:

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

26 entries across 26 versions & 1 rubygems

Version Path
sinatra_resource-0.4.1 examples/datacatalog/resources/sources_usages.rb
sinatra_resource-0.4.0 examples/datacatalog/resources/sources_usages.rb
sinatra_resource-0.3.6 examples/datacatalog/resources/sources_usages.rb
sinatra_resource-0.3.5 examples/datacatalog/resources/sources_usages.rb
sinatra_resource-0.3.4 examples/datacatalog/resources/sources_usages.rb
sinatra_resource-0.3.3 examples/datacatalog/resources/sources_usages.rb