Sha256: d067e9e1371882dab8eaab91ce2b7d32e23236ea0f4606a3bea884034592814e
Contents?: true
Size: 577 Bytes
Versions: 5
Compression:
Stored size: 577 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
alma-0.4.2 | lib/alma/config.rb |
alma-0.4.1 | lib/alma/config.rb |
alma-0.4.0 | lib/alma/config.rb |
alma-0.3.3 | lib/alma/config.rb |
alma-0.3.2 | lib/alma/config.rb |