Class: CloudscrapeClient
- Inherits:
-
Object
- Object
- CloudscrapeClient
- 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
- #executions(id) ⇒ Object
-
#initialize(api_key: nil, account_id: nil) ⇒ CloudscrapeClient
constructor
A new instance of CloudscrapeClient.
- #runs(id) ⇒ Object
Methods included from 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.account_id = account_id if account_id 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 |