Class: Fal::Endpoints::Run
- Inherits:
-
Object
- Object
- Fal::Endpoints::Run
- Defined in:
- lib/fal/endpoints.rb
Overview
Endpoint for synchronous run: POST fal.run/app_id
Instance Method Summary collapse
-
#initialize(app_id:, base_url:) ⇒ Run
constructor
A new instance of Run.
- #method ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(app_id:, base_url:) ⇒ Run
Returns a new instance of Run.
7 8 9 10 |
# File 'lib/fal/endpoints.rb', line 7 def initialize(app_id:, base_url:) @app_id = app_id @base_url = base_url end |
Instance Method Details
#method ⇒ Object
16 17 18 |
# File 'lib/fal/endpoints.rb', line 16 def method :post end |
#url ⇒ Object
12 13 14 |
# File 'lib/fal/endpoints.rb', line 12 def url "#{@base_url}/#{@app_id}" end |