Class: CloudscrapeClient::Executions
- Inherits:
-
Object
- Object
- CloudscrapeClient::Executions
show all
- Defined in:
- lib/cloudscrape_client/executions.rb,
lib/cloudscrape_client/executions/get.rb,
lib/cloudscrape_client/executions/result.rb,
lib/cloudscrape_client/executions/results.rb,
lib/cloudscrape_client/executions/result/file.rb
Defined Under Namespace
Classes: Get, Result, Results
Instance Method Summary
collapse
Constructor Details
Returns a new instance of Executions.
10
11
12
|
# File 'lib/cloudscrape_client/executions.rb', line 10
def initialize(id:)
@id = id
end
|
Instance Method Details
#continue ⇒ Object
49
50
51
|
# File 'lib/cloudscrape_client/executions.rb', line 49
def continue
dto(url: "continue", method: :post)
end
|
#file(result_file) ⇒ Object
23
24
25
26
27
28
29
30
|
# File 'lib/cloudscrape_client/executions.rb', line 23
def file(result_file)
dto(
url: "file",
method: :get,
record_id: result_file.id,
content_type: result_file.content_type
)
end
|
#get ⇒ Object
14
15
16
17
18
19
20
21
|
# File 'lib/cloudscrape_client/executions.rb', line 14
def get
response = dto(
url: "",
method: :get
)
Get.new(response: response)
end
|
#remove ⇒ Object
41
42
43
|
# File 'lib/cloudscrape_client/executions.rb', line 41
def remove
dto(url: "", method: :delete)
end
|
#results ⇒ Object
32
33
34
35
36
37
38
39
|
# File 'lib/cloudscrape_client/executions.rb', line 32
def results
response = dto(
url: "result",
method: :get
)
Results.new(response: response)
end
|
#stop ⇒ Object
45
46
47
|
# File 'lib/cloudscrape_client/executions.rb', line 45
def stop
dto(url: "stop", method: :post)
end
|