Sha256: b5b9ee61e7c2295d3550afdf5a59b46fc242dfddced569d7bfb62ffcd5b00b43
Contents?: true
Size: 686 Bytes
Versions: 3
Compression:
Stored size: 686 Bytes
Contents
require "logger" module Ezid # # EZID client configuration. # # Use Ezid::Client.configure to set values. # # @api private class Configuration attr_writer :user, :password, :logger # Default metadata profile (recommended) attr_accessor :default_metadata_profile # Default status - set only if default should not "public" (EZID default) attr_accessor :default_status # Default shoulder for minting (recommended) attr_accessor :default_shoulder def user @user ||= ENV["EZID_USER"] end def password @password ||= ENV["EZID_PASSWORD"] end def logger @logger ||= ::Logger.new(STDERR) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ezid-client-0.3.0 | lib/ezid/configuration.rb |
ezid-client-0.2.0 | lib/ezid/configuration.rb |
ezid-client-0.1.1 | lib/ezid/configuration.rb |