Class: HTTPartyCurl::Configuration
- Inherits:
-
Object
- Object
- HTTPartyCurl::Configuration
- Defined in:
- lib/httparty_curl.rb
Overview
Configuration class to store gem settings.
Instance Attribute Summary collapse
-
#curl_logging_enabled ⇒ Object
Returns the value of attribute curl_logging_enabled.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
19 20 21 22 23 |
# File 'lib/httparty_curl.rb', line 19 def initialize @environment = detect_environment @curl_logging_enabled = default_logging_enabled? @logger = ::Logger.new($stdout) end |
Instance Attribute Details
#curl_logging_enabled ⇒ Object
Returns the value of attribute curl_logging_enabled.
16 17 18 |
# File 'lib/httparty_curl.rb', line 16 def curl_logging_enabled @curl_logging_enabled end |
#environment ⇒ Object
Returns the value of attribute environment.
17 18 19 |
# File 'lib/httparty_curl.rb', line 17 def environment @environment end |
#logger ⇒ Object
Returns the value of attribute logger.
16 17 18 |
# File 'lib/httparty_curl.rb', line 16 def logger @logger end |