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.



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

#apikeyObject

Returns the value of attribute apikey.



35
36
37
# File 'lib/alma/config.rb', line 35

def apikey
  @apikey
end

#debug_output_streamObject

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_outputObject

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_requestsObject

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_loggableObject

Returns the value of attribute enable_loggable.



35
36
37
# File 'lib/alma/config.rb', line 35

def enable_loggable
  @enable_loggable
end

#http_retriesObject

Returns the value of attribute http_retries.



36
37
38
# File 'lib/alma/config.rb', line 36

def http_retries
  @http_retries
end

#log_formatObject

Returns the value of attribute log_format.



38
39
40
# File 'lib/alma/config.rb', line 38

def log_format
  @log_format
end

#log_levelObject

Returns the value of attribute log_level.



38
39
40
# File 'lib/alma/config.rb', line 38

def log_level
  @log_level
end

#loggerObject

Returns the value of attribute logger.



36
37
38
# File 'lib/alma/config.rb', line 36

def logger
  @logger
end

#regionObject

Returns the value of attribute region.



35
36
37
# File 'lib/alma/config.rb', line 35

def region
  @region
end

#timeoutObject

Returns the value of attribute timeout.



36
37
38
# File 'lib/alma/config.rb', line 36

def timeout
  @timeout
end