Sha256: b5c90a1aecd330dd86c504d71504a661bdd513344a0eed0389b25ba709dcf5e2

Contents?: true

Size: 430 Bytes

Versions: 8

Compression:

Stored size: 430 Bytes

Contents

require "jfoundry/v2/model"

module JFoundry::V2
  class Space < Model
    attribute :name, :string
    to_one    :organization
    to_many   :developers, :as => :user
    to_many   :managers, :as => :user
    to_many   :auditors, :as => :user
    to_many   :apps
    to_many   :domains
    to_many   :service_instances

    scoped_to_organization

    queryable_by :name, :organization_guid, :developer_guid, :app_guid
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jfoundry-0.1.7 lib/jfoundry/v2/space.rb
jfoundry-0.1.6 lib/jfoundry/v2/space.rb
jfoundry-0.1.4 lib/jfoundry/v2/space.rb
jfoundry-0.1.3 lib/jfoundry/v2/space.rb
jfoundry-0.1.2 lib/jfoundry/v2/space.rb
jfoundry-0.1.1 lib/jfoundry/v2/space.rb
jfoundry-0.1.0.pre lib/jfoundry/v2/space.rb
jfoundry-0.1.0 lib/jfoundry/v2/space.rb