Class: PlatformAPI::ReviewApp

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

An ephemeral app to review a set of changes

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ ReviewApp

Returns a new instance of ReviewApp.



4094
4095
4096
# File 'lib/platform-api/client.rb', line 4094

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object



4106
4107
4108
# File 'lib/platform-api/client.rb', line 4106

def create(body = {})
  @client.review_app.create(body)
end

#delete(review_app_id) ⇒ Object



4130
4131
4132
# File 'lib/platform-api/client.rb', line 4130

def delete(review_app_id)
  @client.review_app.delete(review_app_id)
end

#get_review_app(review_app_id) ⇒ Object



4118
4119
4120
# File 'lib/platform-api/client.rb', line 4118

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



4142
4143
4144
# File 'lib/platform-api/client.rb', line 4142

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



4154
4155
4156
# File 'lib/platform-api/client.rb', line 4154

def list(pipeline_id)
  @client.review_app.list(pipeline_id)
end