Class: PlatformAPI::ReviewApp
- Inherits:
-
Object
- Object
- PlatformAPI::ReviewApp
- Defined in:
- lib/platform-api/client.rb
Overview
An ephemeral app to review a set of changes
Instance Method Summary collapse
-
#create(body = {}) ⇒ Object
Create a new review app.
-
#delete(review_app_id) ⇒ Object
Delete an existing review app.
-
#get_review_app(review_app_id) ⇒ Object
Gets an existing review app.
-
#get_review_app_by_app_id(app_id_or_app_name) ⇒ Object
Get a review app using the associated app_id.
-
#initialize(client) ⇒ ReviewApp
constructor
A new instance of ReviewApp.
-
#list(pipeline_id) ⇒ Object
List review apps for a pipeline.
Constructor Details
#initialize(client) ⇒ ReviewApp
Returns a new instance of ReviewApp.
2791 2792 2793 |
# File 'lib/platform-api/client.rb', line 2791 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new review app
2798 2799 2800 |
# File 'lib/platform-api/client.rb', line 2798 def create(body = {}) @client.review_app.create(body) end |
#delete(review_app_id) ⇒ Object
Delete an existing review app
2812 2813 2814 |
# File 'lib/platform-api/client.rb', line 2812 def delete(review_app_id) @client.review_app.delete(review_app_id) end |
#get_review_app(review_app_id) ⇒ Object
Gets an existing review app
2805 2806 2807 |
# File 'lib/platform-api/client.rb', line 2805 def get_review_app(review_app_id) @client.review_app.get_review_app(review_app_id) end |
#get_review_app_by_app_id(app_id_or_app_name) ⇒ Object
Get a review app using the associated app_id
2819 2820 2821 |
# File 'lib/platform-api/client.rb', line 2819 def get_review_app_by_app_id(app_id_or_app_name) @client.review_app.get_review_app_by_app_id(app_id_or_app_name) end |
#list(pipeline_id) ⇒ Object
List review apps for a pipeline
2826 2827 2828 |
# File 'lib/platform-api/client.rb', line 2826 def list(pipeline_id) @client.review_app.list(pipeline_id) end |