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.
-
#enable_loggable ⇒ Object
Returns the value of attribute enable_loggable.
-
#http_retries ⇒ Object
Returns the value of attribute http_retries.
-
#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.
17 18 19 20 21 22 23 24 |
# File 'lib/alma/config.rb', line 17 def initialize @apikey = "TEST_API_KEY" @region = "https://api-na.hosted.exlibrisgroup.com" @enable_loggable = false @timeout = 5 @http_retries = 3 @logger = Logger.new(STDOUT) end |
Instance Attribute Details
#apikey ⇒ Object
Returns the value of attribute apikey.
14 15 16 |
# File 'lib/alma/config.rb', line 14 def apikey @apikey end |
#enable_loggable ⇒ Object
Returns the value of attribute enable_loggable.
14 15 16 |
# File 'lib/alma/config.rb', line 14 def enable_loggable @enable_loggable end |
#http_retries ⇒ Object
Returns the value of attribute http_retries.
15 16 17 |
# File 'lib/alma/config.rb', line 15 def http_retries @http_retries end |
#logger ⇒ Object
Returns the value of attribute logger.
15 16 17 |
# File 'lib/alma/config.rb', line 15 def logger @logger end |
#region ⇒ Object
Returns the value of attribute region.
14 15 16 |
# File 'lib/alma/config.rb', line 14 def region @region end |
#timeout ⇒ Object
Returns the value of attribute timeout.
15 16 17 |
# File 'lib/alma/config.rb', line 15 def timeout @timeout end |