Sha256: 30211431131b039c962700f2d61f39fa2a060f914d694c19a4c6ae1344a79a0a

Contents?: true

Size: 519 Bytes

Versions: 25

Compression:

Stored size: 519 Bytes

Contents

require "cfoundry/v2/model"

module CFoundry::V2
  class Organization < Model
    attribute :name, :string
    attribute :billing_enabled, :boolean
    attribute :status, :string

    to_many   :spaces
    to_many   :domains
    to_many   :users
    to_many   :managers, :as => :user
    to_many   :billing_managers, :as => :user
    to_many   :auditors, :as => :user

    to_one    :quota_definition

    queryable_by :name, :space_guid, :user_guid, :manager_guid,
      :billing_manager_guid, :auditor_guid
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
cfoundry-4.5.2 lib/cfoundry/v2/organization.rb
cfoundry-4.5.1 lib/cfoundry/v2/organization.rb
cfoundry-4.5.0 lib/cfoundry/v2/organization.rb
cfoundry-4.3.12 lib/cfoundry/v2/organization.rb
cfoundry-4.3.11 lib/cfoundry/v2/organization.rb
cfoundry-4.3.10 lib/cfoundry/v2/organization.rb
cfoundry-4.3.9 lib/cfoundry/v2/organization.rb
cfoundry-4.3.8 lib/cfoundry/v2/organization.rb
cfoundry-4.3.7 lib/cfoundry/v2/organization.rb
cfoundry-4.3.6 lib/cfoundry/v2/organization.rb
cfoundry-4.3.5 lib/cfoundry/v2/organization.rb
cfoundry-4.3.5.rc1 lib/cfoundry/v2/organization.rb
cfoundry-4.3.4 lib/cfoundry/v2/organization.rb
cfoundry-4.3.4.rc1 lib/cfoundry/v2/organization.rb
cfoundry-4.3.3 lib/cfoundry/v2/organization.rb
cfoundry-4.3.2.rc1 lib/cfoundry/v2/organization.rb
cfoundry-4.3.1 lib/cfoundry/v2/organization.rb
cfoundry-4.3.0 lib/cfoundry/v2/organization.rb
cfoundry-4.2.0.rc lib/cfoundry/v2/organization.rb
cfoundry-4.1.0 lib/cfoundry/v2/organization.rb