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 ⇒ Object
Create URLs for uploading and downloading source.
-
#create_deprecated(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.
2911 2912 2913 |
# File 'lib/platform-api/client.rb', line 2911 def initialize(client) @client = client end |
Instance Method Details
#create ⇒ Object
Create URLs for uploading and downloading source.
2916 2917 2918 |
# File 'lib/platform-api/client.rb', line 2916 def create() @client.source.create() end |
#create_deprecated(app_id_or_app_name) ⇒ Object
Create URLs for uploading and downloading source. Deprecated in favor of POST /sources
2923 2924 2925 |
# File 'lib/platform-api/client.rb', line 2923 def create_deprecated(app_id_or_app_name) @client.source.create_deprecated(app_id_or_app_name) end |