Class: PlatformAPI::Organization
- Inherits:
-
Object
- Object
- PlatformAPI::Organization
- Defined in:
- lib/platform-api/client.rb
Overview
Organizations allow you to manage access to a shared group of applications across your development team.
Instance Method Summary collapse
-
#initialize(client) ⇒ Organization
constructor
A new instance of Organization.
-
#list ⇒ Object
List organizations in which you are a member.
-
#update(organization_name, body) ⇒ Object
Set or Unset the organization as your default organization.
Constructor Details
#initialize(client) ⇒ Organization
Returns a new instance of Organization.
1113 1114 1115 |
# File 'lib/platform-api/client.rb', line 1113 def initialize(client) @client = client end |
Instance Method Details
#list ⇒ Object
List organizations in which you are a member.
1118 1119 1120 |
# File 'lib/platform-api/client.rb', line 1118 def list() @client.organization.list() end |
#update(organization_name, body) ⇒ Object
Set or Unset the organization as your default organization.
1126 1127 1128 |
# File 'lib/platform-api/client.rb', line 1126 def update(organization_name, body) @client.organization.update(organization_name, body) end |