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
-
#info(organization_name) ⇒ Object
Info for an organization.
-
#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.
1777 1778 1779 |
# File 'lib/platform-api/client.rb', line 1777 def initialize(client) @client = client end |
Instance Method Details
#info(organization_name) ⇒ Object
Info for an organization.
1789 1790 1791 |
# File 'lib/platform-api/client.rb', line 1789 def info(organization_name) @client.organization.info(organization_name) end |
#list ⇒ Object
List organizations in which you are a member.
1782 1783 1784 |
# File 'lib/platform-api/client.rb', line 1782 def list() @client.organization.list() end |
#update(organization_name, body = {}) ⇒ Object
Set or unset the organization as your default organization.
1797 1798 1799 |
# File 'lib/platform-api/client.rb', line 1797 def update(organization_name, body = {}) @client.organization.update(organization_name, body) end |