Class: PlatformAPI::App
- Inherits:
-
Object
- Object
- PlatformAPI::App
- Defined in:
- lib/platform-api/client.rb
Overview
An app represents the program that you would like to deploy and run on Heroku.
Instance Method Summary collapse
-
#create(body = {}) ⇒ Object
Create a new app.
-
#delete(app_id_or_app_name) ⇒ Object
Delete an existing app.
-
#info(app_id_or_app_name) ⇒ Object
Info for existing app.
-
#initialize(client) ⇒ App
constructor
A new instance of App.
-
#list ⇒ Object
List existing apps.
-
#list_owned_and_collaborated(account_email_or_account_id_or_account_self) ⇒ Object
List owned and collaborated apps (excludes organization apps).
-
#update(app_id_or_app_name, body = {}) ⇒ Object
Update an existing app.
Constructor Details
#initialize(client) ⇒ App
Returns a new instance of App.
954 955 956 |
# File 'lib/platform-api/client.rb', line 954 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new app.
961 962 963 |
# File 'lib/platform-api/client.rb', line 961 def create(body = {}) @client.app.create(body) end |
#delete(app_id_or_app_name) ⇒ Object
Delete an existing app.
968 969 970 |
# File 'lib/platform-api/client.rb', line 968 def delete(app_id_or_app_name) @client.app.delete(app_id_or_app_name) end |
#info(app_id_or_app_name) ⇒ Object
Info for existing app.
975 976 977 |
# File 'lib/platform-api/client.rb', line 975 def info(app_id_or_app_name) @client.app.info(app_id_or_app_name) end |
#list ⇒ Object
List existing apps.
980 981 982 |
# File 'lib/platform-api/client.rb', line 980 def list() @client.app.list() end |
#list_owned_and_collaborated(account_email_or_account_id_or_account_self) ⇒ Object
List owned and collaborated apps (excludes organization apps).
987 988 989 |
# File 'lib/platform-api/client.rb', line 987 def list_owned_and_collaborated(account_email_or_account_id_or_account_self) @client.app.list_owned_and_collaborated(account_email_or_account_id_or_account_self) end |
#update(app_id_or_app_name, body = {}) ⇒ Object
Update an existing app.
995 996 997 |
# File 'lib/platform-api/client.rb', line 995 def update(app_id_or_app_name, body = {}) @client.app.update(app_id_or_app_name, body) end |