Class: Alma::Configuration
- Inherits:
-
Object
- Object
- Alma::Configuration
- Defined in:
- lib/alma/config.rb
Instance Attribute Summary collapse
-
#apikey ⇒ Object
Returns the value of attribute apikey.
-
#debug_output_stream ⇒ Object
Returns the value of attribute debug_output_stream.
-
#enable_debug_output ⇒ Object
Returns the value of attribute enable_debug_output.
-
#enable_log_requests ⇒ Object
Returns the value of attribute enable_log_requests.
-
#enable_loggable ⇒ Object
Returns the value of attribute enable_loggable.
-
#http_retries ⇒ Object
Returns the value of attribute http_retries.
-
#log_format ⇒ Object
Returns the value of attribute log_format.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#region ⇒ Object
Returns the value of attribute region.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/alma/config.rb', line 41 def initialize @apikey = "TEST_API_KEY" @region = "https://api-na.hosted.exlibrisgroup.com" @enable_loggable = false @timeout = 5 @http_retries = 3 @log_level = :info @log_format = :logstash @logger = Logger.new(STDOUT) @enable_log_requests = false @enable_debug_output = false @log_level = :info @log_format = :logstash @debug_output_stream = $stderr end |
Instance Attribute Details
#apikey ⇒ Object
Returns the value of attribute apikey.
35 36 37 |
# File 'lib/alma/config.rb', line 35 def apikey @apikey end |
#debug_output_stream ⇒ Object
Returns the value of attribute debug_output_stream.
38 39 40 |
# File 'lib/alma/config.rb', line 38 def debug_output_stream @debug_output_stream end |
#enable_debug_output ⇒ Object
Returns the value of attribute enable_debug_output.
39 40 41 |
# File 'lib/alma/config.rb', line 39 def enable_debug_output @enable_debug_output end |
#enable_log_requests ⇒ Object
Returns the value of attribute enable_log_requests.
39 40 41 |
# File 'lib/alma/config.rb', line 39 def enable_log_requests @enable_log_requests end |
#enable_loggable ⇒ Object
Returns the value of attribute enable_loggable.
35 36 37 |
# File 'lib/alma/config.rb', line 35 def enable_loggable @enable_loggable end |
#http_retries ⇒ Object
Returns the value of attribute http_retries.
36 37 38 |
# File 'lib/alma/config.rb', line 36 def http_retries @http_retries end |
#log_format ⇒ Object
Returns the value of attribute log_format.
38 39 40 |
# File 'lib/alma/config.rb', line 38 def log_format @log_format end |
#log_level ⇒ Object
Returns the value of attribute log_level.
38 39 40 |
# File 'lib/alma/config.rb', line 38 def log_level @log_level end |
#logger ⇒ Object
Returns the value of attribute logger.
36 37 38 |
# File 'lib/alma/config.rb', line 36 def logger @logger end |
#region ⇒ Object
Returns the value of attribute region.
35 36 37 |
# File 'lib/alma/config.rb', line 35 def region @region end |
#timeout ⇒ Object
Returns the value of attribute timeout.
36 37 38 |
# File 'lib/alma/config.rb', line 36 def timeout @timeout end |