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
993 994 995 |
# File 'lib/platform-api/client.rb', line 993 def initialize(client) @client = client end |
Instance Method Details
#list ⇒ Object
List organizations in which you are a member.
998 999 1000 |
# File 'lib/platform-api/client.rb', line 998 def list() @client.organization.list() end |
#update(organization_name, body) ⇒ Object
Set or Unset the organization as your default organization.
1006 1007 1008 |
# File 'lib/platform-api/client.rb', line 1006 def update(organization_name, body) @client.organization.update(organization_name, body) end |