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.



15
16
17
18
19
20
21
22
# File 'lib/alma/config.rb', line 15

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.



12
13
14
# File 'lib/alma/config.rb', line 12

def apikey
  @apikey
end

#enable_loggableObject

Returns the value of attribute enable_loggable.



12
13
14
# File 'lib/alma/config.rb', line 12

def enable_loggable
  @enable_loggable
end

#http_retriesObject

Returns the value of attribute http_retries.



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

def http_retries
  @http_retries
end

#loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end

#regionObject

Returns the value of attribute region.



12
13
14
# File 'lib/alma/config.rb', line 12

def region
  @region
end

#timeoutObject

Returns the value of attribute timeout.



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

def timeout
  @timeout
end