Class: Ezid::Configuration Private
- Inherits:
-
Object
- Object
- Ezid::Configuration
- Defined in:
- lib/ezid/configuration.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
EZID client configuration.
Use Ezid::Client.configure to set values.
Instance Attribute Summary collapse
-
#default_shoulder ⇒ Object
private
Default shoulder for minting (scheme + NAAN + shoulder).
- #logger ⇒ Object private
-
#password ⇒ Object
private
EZID password Default: value of ‘EZID_PASSWORD` environment variable.
-
#user ⇒ Object
private
EZID user name Default: value of ‘EZID_USER` environment variable.
Instance Method Summary collapse
- #identifier ⇒ Object private
-
#initialize ⇒ Configuration
constructor
private
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Configuration.
38 39 40 41 |
# File 'lib/ezid/configuration.rb', line 38 def initialize @user = ENV["EZID_USER"] @password = ENV["EZID_PASSWORD"] end |
Instance Attribute Details
#default_shoulder ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Default shoulder for minting (scheme + NAAN + shoulder)
36 37 38 |
# File 'lib/ezid/configuration.rb', line 36 def default_shoulder @default_shoulder end |
#logger ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
43 44 45 |
# File 'lib/ezid/configuration.rb', line 43 def logger @logger ||= Logger.new(STDERR) end |
#password ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
EZID password
Default: value of `EZID_PASSWORD` environment variable
18 19 20 |
# File 'lib/ezid/configuration.rb', line 18 def password @password end |
#user ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
EZID user name
Default: value of `EZID_USER` environment variable
14 15 16 |
# File 'lib/ezid/configuration.rb', line 14 def user @user end |
Instance Method Details
#identifier ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
47 48 49 |
# File 'lib/ezid/configuration.rb', line 47 def identifier Identifier end |