Sha256: 68f3ec3f9fbcfb48a682d6e1d2c274edf31e9569081af4140b9873ba876cf6e1

Contents?: true

Size: 447 Bytes

Versions: 19

Compression:

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

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

    has_summary
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cfoundry-0.4.18 lib/cfoundry/v2/space.rb
cfoundry-0.4.17 lib/cfoundry/v2/space.rb
cfoundry-0.4.16 lib/cfoundry/v2/space.rb
cfoundry-0.4.15 lib/cfoundry/v2/space.rb
cfoundry-0.4.14 lib/cfoundry/v2/space.rb
cfoundry-0.4.13 lib/cfoundry/v2/space.rb
cfoundry-0.4.12 lib/cfoundry/v2/space.rb
cfoundry-0.4.11 lib/cfoundry/v2/space.rb
cfoundry-0.4.10 lib/cfoundry/v2/space.rb
cfoundry-0.4.9 lib/cfoundry/v2/space.rb
cfoundry-0.4.8 lib/cfoundry/v2/space.rb
cfoundry-0.4.7 lib/cfoundry/v2/space.rb
cfoundry-0.4.6 lib/cfoundry/v2/space.rb
cfoundry-0.4.5 lib/cfoundry/v2/space.rb
cfoundry-0.4.4 lib/cfoundry/v2/space.rb
cfoundry-0.4.3 lib/cfoundry/v2/space.rb
cfoundry-0.4.2 lib/cfoundry/v2/space.rb
cfoundry-0.4.1 lib/cfoundry/v2/space.rb
cfoundry-0.4.0 lib/cfoundry/v2/space.rb