Class: CloudscrapeClient::Executions

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudscrape_client/executions.rb,
lib/cloudscrape_client/executions/get.rb,
lib/cloudscrape_client/executions/result.rb

Defined Under Namespace

Classes: Get, Result

Instance Method Summary collapse

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

#continueObject



27
28
29
# File 'lib/cloudscrape_client/executions.rb', line 27

def continue
  dto("continue", :post)
end

#getObject



11
12
13
# File 'lib/cloudscrape_client/executions.rb', line 11

def get
  Get.new(response: dto("", :get))
end

#removeObject



19
20
21
# File 'lib/cloudscrape_client/executions.rb', line 19

def remove
  dto("", :delete)
end

#resultObject



15
16
17
# File 'lib/cloudscrape_client/executions.rb', line 15

def result
  Result.new(response: dto("result", :get))
end

#stopObject



23
24
25
# File 'lib/cloudscrape_client/executions.rb', line 23

def stop
  dto("stop", :post)
end