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
Defined Under Namespace
Classes: Get, Result, Results
Instance Method Summary
collapse
Constructor Details
Returns a new instance of Executions.
8
9
10
|
# File 'lib/cloudscrape_client/executions.rb', line 8
def initialize(id:)
@id = id
end
|
Instance Method Details
#continue ⇒ Object
33
34
35
|
# File 'lib/cloudscrape_client/executions.rb', line 33
def continue
dto("continue", :post)
end
|
#get ⇒ Object
12
13
14
|
# File 'lib/cloudscrape_client/executions.rb', line 12
def get
Get.new(response: dto("", :get))
end
|
#remove ⇒ Object
25
26
27
|
# File 'lib/cloudscrape_client/executions.rb', line 25
def remove
dto("", :delete)
end
|
#result ⇒ Object
16
17
18
19
|
# File 'lib/cloudscrape_client/executions.rb', line 16
def result
warn "[DEPRECATION] `result` is deprecated. Please use `results` instead."
results.collection.first
end
|
#results ⇒ Object
21
22
23
|
# File 'lib/cloudscrape_client/executions.rb', line 21
def results
@results ||= Results.new(response: dto("result", :get))
end
|
#stop ⇒ Object
29
30
31
|
# File 'lib/cloudscrape_client/executions.rb', line 29
def stop
dto("stop", :post)
end
|