Class: HTTPartyCurl::Configuration

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

Overview

Configuration class to store gem settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Initializes the configuration with default values.



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

def initialize
  @curl_logging_enabled = false
  @logger = ::Logger.new($stdout)
end

Instance Attribute Details

#curl_logging_enabledBoolean

Returns whether cURL logging is enabled.

Returns:

  • (Boolean)

    whether cURL logging is enabled.



17
18
19
# File 'lib/httparty_curl.rb', line 17

def curl_logging_enabled
  @curl_logging_enabled
end

#loggerLogger

Returns the logger instance used for logging.

Returns:

  • (Logger)

    the logger instance used for logging.



20
21
22
# File 'lib/httparty_curl.rb', line 20

def logger
  @logger
end