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.



1074
1075
1076
# File 'lib/platform-api/client.rb', line 1074

def initialize(client)
  @client = client
end

Instance Method Details

#listObject

List organizations in which you are a member.



1079
1080
1081
# File 'lib/platform-api/client.rb', line 1079

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



1087
1088
1089
# File 'lib/platform-api/client.rb', line 1087

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