Class: Fal::Endpoints::Run

Inherits:
Object
  • Object
show all
Defined in:
lib/fal/endpoints.rb

Overview

Endpoint for synchronous run: POST fal.run/app_id

Instance Method Summary collapse

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

#methodObject



16
17
18
# File 'lib/fal/endpoints.rb', line 16

def method
  :post
end

#urlObject



12
13
14
# File 'lib/fal/endpoints.rb', line 12

def url
  "#{@base_url}/#{@app_id}"
end