Class: PlatformAPI::Source
- Inherits:
-
Object
- Object
- PlatformAPI::Source
- 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
-
#create(app_id_or_app_name) ⇒ Object
Create URLs for uploading and downloading source.
-
#initialize(client) ⇒ Source
constructor
A new instance of Source.
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.
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 |