Class: PlatformAPI::AppTransfer

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

Overview

An app transfer represents a two party interaction for transferring ownership of an app.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ AppTransfer

Returns a new instance of AppTransfer.



1289
1290
1291
# File 'lib/platform-api/client.rb', line 1289

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object

Create a new app transfer.

Parameters:

  • body:

    the object to pass as the request payload



1296
1297
1298
# File 'lib/platform-api/client.rb', line 1296

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

#delete(app_transfer_id_or_app_name) ⇒ Object

Delete an existing app transfer

Parameters:

  • app_transfer_id_or_app_name:

    unique identifier of app transfer or unique name of app



1303
1304
1305
# File 'lib/platform-api/client.rb', line 1303

def delete(app_transfer_id_or_app_name)
  @client.app_transfer.delete(app_transfer_id_or_app_name)
end

#info(app_transfer_id_or_app_name) ⇒ Object

Info for existing app transfer.

Parameters:

  • app_transfer_id_or_app_name:

    unique identifier of app transfer or unique name of app



1310
1311
1312
# File 'lib/platform-api/client.rb', line 1310

def info(app_transfer_id_or_app_name)
  @client.app_transfer.info(app_transfer_id_or_app_name)
end

#listObject

List existing apps transfers.



1315
1316
1317
# File 'lib/platform-api/client.rb', line 1315

def list()
  @client.app_transfer.list()
end

#update(app_transfer_id_or_app_name, body = {}) ⇒ Object

Update an existing app transfer.

Parameters:

  • app_transfer_id_or_app_name:

    unique identifier of app transfer or unique name of app

  • body:

    the object to pass as the request payload



1323
1324
1325
# File 'lib/platform-api/client.rb', line 1323

def update(app_transfer_id_or_app_name, body = {})
  @client.app_transfer.update(app_transfer_id_or_app_name, body)
end