lib/ezid/configuration.rb in ezid-client-1.0.1 vs lib/ezid/configuration.rb in ezid-client-1.1.0
- old
+ new
@@ -47,9 +47,15 @@
@use_ssl = true if ENV["EZID_USE_SSL"] == true.to_s
@timeout = ENV["EZID_TIMEOUT"] || TIMEOUT
@default_shoulder = ENV["EZID_DEFAULT_SHOULDER"]
end
+ def inspect
+ ivars = instance_variables.reject { |v| v == :@password }
+ .map { |v| "#{v}=#{instance_variable_get(v).inspect}" }
+ "#<#{self.class.name} #{ivars.join(', ')}>"
+ end
+
def logger
@logger ||= Logger.new(STDERR)
end
def identifier