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.



1113
1114
1115
# File 'lib/platform-api/client.rb', line 1113

def initialize(client)
  @client = client
end

Instance Method Details

#listObject

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.

Parameters:

  • organization_name:

    unique name of organization

  • body:

    the object to pass as the request payload



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

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