lib/ezid/configuration.rb in ezid-client-1.9.0 vs lib/ezid/configuration.rb in ezid-client-1.9.1
- old
+ new
@@ -34,16 +34,22 @@
# Default shoulder for minting (scheme + NAAN + shoulder)
# @example "ark:/99999/fk4"
attr_accessor :default_shoulder
+ # Interval in seconds to wait between
+ # retries of failed requests
+ # @see Ezid::Request#execute.
+ attr_accessor :retry_interval
+
def initialize
@user = ENV["EZID_USER"]
@password = ENV["EZID_PASSWORD"]
@host = ENV["EZID_HOST"] || HOST
@port = ENV["EZID_PORT"] || PORT
@timeout = ENV["EZID_TIMEOUT"] || TIMEOUT
@default_shoulder = ENV["EZID_DEFAULT_SHOULDER"]
+ @retry_interval = ( ENV["EZID_RETRY_INTERVAL"] || 15 ).to_i
end
def inspect
ivars = instance_variables.reject { |v| v == :@password }
.map { |v| "#{v}=#{instance_variable_get(v).inspect}" }