Class: Fal::Endpoints::Submit
- Inherits:
-
Object
- Object
- Fal::Endpoints::Submit
- Defined in:
- lib/fal/endpoints.rb
Overview
Endpoint for queue submit: POST queue.fal.run/app_id
Instance Method Summary collapse
-
#initialize(app_id:, base_url:) ⇒ Submit
constructor
A new instance of Submit.
- #method ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(app_id:, base_url:) ⇒ Submit
Returns a new instance of Submit.
23 24 25 26 |
# File 'lib/fal/endpoints.rb', line 23 def initialize(app_id:, base_url:) @app_id = app_id @base_url = base_url end |
Instance Method Details
#method ⇒ Object
32 33 34 |
# File 'lib/fal/endpoints.rb', line 32 def method :post end |
#url ⇒ Object
28 29 30 |
# File 'lib/fal/endpoints.rb', line 28 def url "#{@base_url}/#{@app_id}" end |