Class: PlatformAPI::Source

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

Overview

A source is a location for uploading and downloading an application's source code.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Source

Returns a new instance of Source.



2172
2173
2174
# File 'lib/platform-api/client.rb', line 2172

def initialize(client)
  @client = client
end

Instance Method Details

#create(app_id_or_app_name) ⇒ Object

Create URLs for uploading and downloading source.

Parameters:

  • app_id_or_app_name:

    unique identifier of app or unique name of app



2179
2180
2181
# File 'lib/platform-api/client.rb', line 2179

def create(app_id_or_app_name)
  @client.source.create(app_id_or_app_name)
end