Class: CloudscrapeClient::Configure::Configuration
- Inherits:
-
Object
- Object
- CloudscrapeClient::Configure::Configuration
- Defined in:
- lib/cloudscrape_client/configuration.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#user_agent_app ⇒ Object
Returns the value of attribute user_agent_app.
-
#user_agent_version ⇒ Object
Returns the value of attribute user_agent_version.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/cloudscrape_client/configuration.rb', line 24 def initialize 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.account_id = ENV["CLOUD_SCRAPE_CLIENT_ACCOUNT_ID"] self.verbose = ENV["CLOUD_SCRAPE_CLIENT_VERBOSE"] || false self.logger = Logger.new(STDOUT) end |
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
15 16 17 |
# File 'lib/cloudscrape_client/configuration.rb', line 15 def account_id @account_id end |
#api_key ⇒ Object
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_url ⇒ Object
Returns the value of attribute base_url.
15 16 17 |
# File 'lib/cloudscrape_client/configuration.rb', line 15 def base_url @base_url end |
#logger ⇒ Object
Returns the value of attribute logger.
15 16 17 |
# File 'lib/cloudscrape_client/configuration.rb', line 15 def logger @logger end |
#timeout ⇒ Object
Returns the value of attribute timeout.
15 16 17 |
# File 'lib/cloudscrape_client/configuration.rb', line 15 def timeout @timeout end |
#user_agent_app ⇒ Object
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_version ⇒ Object
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 |
#verbose ⇒ Object
Returns the value of attribute verbose.
15 16 17 |
# File 'lib/cloudscrape_client/configuration.rb', line 15 def verbose @verbose end |