Sha256: 6ada3618c6591d094cb1bbf54a522ffb1c6e0deed2350b56503234a091ea7365

Contents?: true

Size: 454 Bytes

Versions: 20

Compression:

Stored size: 454 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
    to_many   :services

    scoped_to_organization

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
cfoundry-4.7.2.rc1 lib/cfoundry/v2/space.rb
cfoundry-4.7.1 lib/cfoundry/v2/space.rb
cfoundry-4.7.1.rc1 lib/cfoundry/v2/space.rb
cfoundry-4.7.0 lib/cfoundry/v2/space.rb
cfoundry-4.6.3.rc3 lib/cfoundry/v2/space.rb
cfoundry-4.6.3.rc2 lib/cfoundry/v2/space.rb
cfoundry-4.6.3.rc1 lib/cfoundry/v2/space.rb
cfoundry-4.6.2 lib/cfoundry/v2/space.rb
cfoundry-4.6.1 lib/cfoundry/v2/space.rb
cfoundry-4.6.0 lib/cfoundry/v2/space.rb
cfoundry-4.5.3 lib/cfoundry/v2/space.rb
cfoundry-4.5.2 lib/cfoundry/v2/space.rb
cfoundry-4.5.1 lib/cfoundry/v2/space.rb
cfoundry-4.5.0 lib/cfoundry/v2/space.rb
cfoundry-4.3.12 lib/cfoundry/v2/space.rb
cfoundry-4.3.11 lib/cfoundry/v2/space.rb
cfoundry-4.3.10 lib/cfoundry/v2/space.rb
cfoundry-4.3.9 lib/cfoundry/v2/space.rb
cfoundry-4.3.8 lib/cfoundry/v2/space.rb
cfoundry-4.3.7 lib/cfoundry/v2/space.rb