lib/ezid/client.rb in ezid-client-0.8.0 vs lib/ezid/client.rb in ezid-client-0.9.0

- old
+ new

@@ -15,19 +15,31 @@ # # @api public # class Client + # ezid-client gem version (e.g., "0.8.0") + VERSION = File.read(File.expand_path("../../../VERSION", __FILE__)).chomp + + # EZID API version + API_VERSION = "2" + class << self # Configuration reader def config @config ||= Configuration.new end # Yields the configuration to a block # @yieldparam [Ezid::Configuration] the configuration def configure yield config + end + + # Verbose version string + # @return [String] the version + def version + "ezid-client #{VERSION} (EZID API Version #{API_VERSION})" end end attr_reader :session, :user, :password, :host, :use_ssl