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

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_enabledObject

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

#environmentObject

Returns the value of attribute environment.



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

def environment
  @environment
end

#loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end