Class: CloudscrapeClient::Executions
- Inherits:
-
Object
- Object
- CloudscrapeClient::Executions
- Defined in:
- lib/cloudscrape_client/executions.rb,
lib/cloudscrape_client/executions/get.rb,
lib/cloudscrape_client/executions/result.rb
Defined Under Namespace
Instance Method Summary collapse
- #continue ⇒ Object
- #get ⇒ Object
-
#initialize(id:) ⇒ Executions
constructor
A new instance of Executions.
- #remove ⇒ Object
- #result ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(id:) ⇒ Executions
Returns a new instance of Executions.
7 8 9 |
# File 'lib/cloudscrape_client/executions.rb', line 7 def initialize(id:) @id = id end |
Instance Method Details
#continue ⇒ Object
27 28 29 |
# File 'lib/cloudscrape_client/executions.rb', line 27 def continue dto("continue", :post) end |
#get ⇒ Object
11 12 13 |
# File 'lib/cloudscrape_client/executions.rb', line 11 def get Get.new(response: dto("", :get)) end |
#remove ⇒ Object
19 20 21 |
# File 'lib/cloudscrape_client/executions.rb', line 19 def remove dto("", :delete) end |
#result ⇒ Object
15 16 17 |
# File 'lib/cloudscrape_client/executions.rb', line 15 def result Result.new(response: dto("result", :get)) end |
#stop ⇒ Object
23 24 25 |
# File 'lib/cloudscrape_client/executions.rb', line 23 def stop dto("stop", :post) end |