Sha256: a2b3969f9be0574391c9b7251c3bf19e48b8d8a127d7b70fa5ab7a996737cf92

Contents?: true

Size: 755 Bytes

Versions: 8

Compression:

Stored size: 755 Bytes

Contents

require "cfoundry/v2/model"
require "cfoundry/v2/helper"

module CFoundry::V2
  class Space < Model
    extend Helper

    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
    to_many   :services
    to_many   :routes

    to_many_support   :developers
    to_many_support   :managers
    to_many_support   :auditors
    to_many_support   :apps
    to_many_support   :domains
    to_many_support   :service_instances
    to_many_support   :services

    scoped_to_organization

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
new_cfoundry-4.9.4 lib/cfoundry/v2/space.rb
new_cfoundry-4.9.3 lib/cfoundry/v2/space.rb
ncfoundry-4.9.4 lib/cfoundry/v2/space.rb
ncfoundry-4.9.3 lib/cfoundry/v2/space.rb
ncfoundry-4.9.2 lib/cfoundry/v2/space.rb
new_cfoundry-4.9.2 lib/cfoundry/v2/space.rb
new_cfoundry-4.9.1 lib/cfoundry/v2/space.rb
new_cfoundry-4.9.0 lib/cfoundry/v2/space.rb