Class: CloudscrapeClient

Inherits:
Object
  • Object
show all
Extended by:
Configure
Defined in:
lib/cloudscrape_client.rb,
lib/cloudscrape_client/api.rb,
lib/cloudscrape_client/dto.rb,
lib/cloudscrape_client/runs.rb,
lib/cloudscrape_client/run_dto.rb,
lib/cloudscrape_client/version.rb,
lib/cloudscrape_client/validate.rb,
lib/cloudscrape_client/executions.rb,
lib/cloudscrape_client/configuration.rb,
lib/cloudscrape_client/execution_dto.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

Modules: Configure Classes: API, DTO, ExecutionDTO, Executions, RunDTO, Runs, Validate

Constant Summary collapse

NotFound =
Class.new(StandardError)
InternalServerError =
Class.new(StandardError)
VERSION =
"0.5.1"

Instance Method Summary collapse

Methods included from Configure

configuration, configure

Constructor Details

#initialize(api_key: nil, account_id: nil) ⇒ CloudscrapeClient

Returns a new instance of CloudscrapeClient.



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

def initialize(api_key: nil, account_id: nil)
  CloudscrapeClient.configuration.api_key = api_key if api_key
  CloudscrapeClient.configuration. =  if 
end

Instance Method Details

#executions(id) ⇒ Object



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

def executions(id)
  Executions.new(id: id)
end

#runs(id) ⇒ Object



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

def runs(id)
  Runs.new(id: id)
end