Class: PlatformAPI::Organization

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(client) ⇒ Organization

Returns a new instance of Organization.



1120
1121
1122
# File 'lib/platform-api/client.rb', line 1120

def initialize(client)
  @client = client
end

Instance Method Details

#listObject

List organizations in which you are a member.



1125
1126
1127
# File 'lib/platform-api/client.rb', line 1125

def list()
  @client.organization.list()
end

#update(organization_name, body) ⇒ Object

Set or Unset the organization as your default organization.

Parameters:

  • organization_name:

    unique name of organization

  • body:

    the object to pass as the request payload



1133
1134
1135
# File 'lib/platform-api/client.rb', line 1133

def update(organization_name, body)
  @client.organization.update(organization_name, body)
end