Class: CloudscrapeClient::Configure::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudscrape_client/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

rubocop:disable Metrics/AbcSize



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/cloudscrape_client/configuration.rb', line 24

def initialize # rubocop:disable Metrics/AbcSize
  self.base_url = base_url_default
  self.user_agent_app = user_agent_app_default
  self.user_agent_version = user_agent_version_default
  self.timeout = timeout_default

  self.api_key = ENV["CLOUD_SCRAPE_CLIENT_API_KEY"]
  self. = ENV["CLOUD_SCRAPE_CLIENT_ACCOUNT_ID"]
  self.verbose = ENV["CLOUD_SCRAPE_CLIENT_VERBOSE"] || false

  self.logger = Logger.new(STDOUT)
end

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



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

def 
  @account_id
end

#api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#base_urlObject

Returns the value of attribute base_url.



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

def base_url
  @base_url
end

#loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end

#timeoutObject

Returns the value of attribute timeout.



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

def timeout
  @timeout
end

#user_agent_appObject

Returns the value of attribute user_agent_app.



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

def user_agent_app
  @user_agent_app
end

#user_agent_versionObject

Returns the value of attribute user_agent_version.



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

def user_agent_version
  @user_agent_version
end

#verboseObject

Returns the value of attribute verbose.



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

def verbose
  @verbose
end