Sha256: f4b58abcc496ea08735de2bbaf435392d1c052f9730a4335765d99153f797159
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
module Alma class << self attr_accessor :configuration end def self.configure() self.configuration ||= Configuration.new yield(configuration) if block_given? end class Configuration attr_accessor :apikey, :region, :enable_loggable attr_accessor :timeout, :http_retries, :logger 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alma-0.3.1 | lib/alma/config.rb |