lib/ezid/configuration.rb in ezid-client-0.1.0 vs lib/ezid/configuration.rb in ezid-client-0.1.1
- old
+ new
@@ -1,22 +1,36 @@
require "logger"
module Ezid
+ #
+ # EZID client configuration.
+ #
+ # Use Ezid::Client.configure to set values.
+ #
+ # @api private
class Configuration
attr_writer :user, :password, :logger
- attr_accessor :metadata_profile, :default_status
+ # 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)
+ @logger ||= ::Logger.new(STDERR)
end
end
end