Class: Ezid::Configuration Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_shoulderObject

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)

Examples:

“ark:/99999/fk4”




36
37
38
# File 'lib/ezid/configuration.rb', line 36

def default_shoulder
  @default_shoulder
end

#loggerObject

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

#passwordObject

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

#userObject

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

#identifierObject

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