Sha256: 3b8169fa9e62dfe3f1e9d3d4385541101560cde2f621e3970982d5a75a4effed

Contents?: true

Size: 375 Bytes

Versions: 7

Compression:

Stored size: 375 Bytes

Contents

require "cfoundry/v2/model"

module CFoundry::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

    has_summary
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cfoundry-0.3.61 lib/cfoundry/v2/space.rb
cfoundry-0.3.60 lib/cfoundry/v2/space.rb
cfoundry-0.3.59 lib/cfoundry/v2/space.rb
cfoundry-0.3.58 lib/cfoundry/v2/space.rb
cfoundry-0.3.57 lib/cfoundry/v2/space.rb
cfoundry-0.3.56 lib/cfoundry/v2/space.rb
cfoundry-0.3.55 lib/cfoundry/v2/space.rb