Class: Alma::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#apikeyObject

Returns the value of attribute apikey.



14
15
16
# File 'lib/alma/config.rb', line 14

def apikey
  @apikey
end

#enable_loggableObject

Returns the value of attribute enable_loggable.



14
15
16
# File 'lib/alma/config.rb', line 14

def enable_loggable
  @enable_loggable
end

#http_retriesObject

Returns the value of attribute http_retries.



15
16
17
# File 'lib/alma/config.rb', line 15

def http_retries
  @http_retries
end

#loggerObject

Returns the value of attribute logger.



15
16
17
# File 'lib/alma/config.rb', line 15

def logger
  @logger
end

#regionObject

Returns the value of attribute region.



14
15
16
# File 'lib/alma/config.rb', line 14

def region
  @region
end

#timeoutObject

Returns the value of attribute timeout.



15
16
17
# File 'lib/alma/config.rb', line 15

def timeout
  @timeout
end