Class: PlatformAPI::OrganizationApp
- Inherits:
-
Object
- Object
- PlatformAPI::OrganizationApp
- Defined in:
- lib/platform-api/client.rb
Overview
An organization app encapsulates the organization specific functionality of Heroku apps.
Instance Method Summary collapse
-
#create(organization_name, body) ⇒ Object
Create a new organization app.
-
#initialize(client) ⇒ OrganizationApp
constructor
A new instance of OrganizationApp.
-
#list(organization_name) ⇒ Object
List organization apps.
-
#transfer_to_account(app_id_or_app_name, body) ⇒ Object
Transfer an existing organization app to another Heroku account.
-
#transfer_to_organization(app_id_or_app_name, body) ⇒ Object
Transfer an existing organization app to another organization.
-
#update_locked(app_id_or_app_name, body) ⇒ Object
Lock or unlock an organization app.
Constructor Details
#initialize(client) ⇒ OrganizationApp
Returns a new instance of OrganizationApp.
917 918 919 |
# File 'lib/platform-api/client.rb', line 917 def initialize(client) @client = client end |
Instance Method Details
#create(organization_name, body) ⇒ Object
Create a new organization app. Use this endpoint instead of the /apps endpoint when you want to create an app that will be owned by an organization in which you are a member, rather than your personal account.
925 926 927 |
# File 'lib/platform-api/client.rb', line 925 def create(organization_name, body) @client.organization_app.create(organization_name, body) end |
#list(organization_name) ⇒ Object
List organization apps.
932 933 934 |
# File 'lib/platform-api/client.rb', line 932 def list(organization_name) @client.organization_app.list(organization_name) end |
#transfer_to_account(app_id_or_app_name, body) ⇒ Object
Transfer an existing organization app to another Heroku account.
948 949 950 |
# File 'lib/platform-api/client.rb', line 948 def transfer_to_account(app_id_or_app_name, body) @client.organization_app.transfer_to_account(app_id_or_app_name, body) end |
#transfer_to_organization(app_id_or_app_name, body) ⇒ Object
Transfer an existing organization app to another organization.
956 957 958 |
# File 'lib/platform-api/client.rb', line 956 def transfer_to_organization(app_id_or_app_name, body) @client.organization_app.transfer_to_organization(app_id_or_app_name, body) end |
#update_locked(app_id_or_app_name, body) ⇒ Object
Lock or unlock an organization app.
940 941 942 |
# File 'lib/platform-api/client.rb', line 940 def update_locked(app_id_or_app_name, body) @client.organization_app.update_locked(app_id_or_app_name, body) end |