Sha256: 97a56b928fdb461f5b65ffb846ea592d1cd55d17d259c5d9d173b9fe277166bc
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
require "logger" module Ezid # # EZID client configuration. # # Use Ezid::Client.configure to set values. # # @api private class Configuration # EZID user name # Default: value of `EZID_USER` environment variable attr_accessor :user # EZID password # Default: value of `EZID_PASSWORD` environment variable attr_accessor :password # Ruby logger instance # Default device: STDERR attr_writer :logger # Default metadata profile - "erc" (EZID default), "dc", "datacite", or "crossref" # If set, new identifiers (created or minted) will set the "_profile" element to # this value. # attr_accessor :default_metadata_profile # Default status - "public" (EZID default), "reserved", or "unavailable" # If set, new identifiers (created or minted) will set the "_status" element to # this value. # attr_accessor :default_status # Default shoulder for minting (scheme + NAAN + shoulder) # @example "ark:/99999/fk4" attr_accessor :default_shoulder def initialize @user = ENV["EZID_USER"] @password = ENV["EZID_PASSWORD"] end def logger @logger ||= Logger.new(STDERR) end def identifier Identifier end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ezid-client-0.7.0 | lib/ezid/configuration.rb |
ezid-client-0.6.0 | lib/ezid/configuration.rb |