lib/ezid/client.rb in ezid-client-0.5.0 vs lib/ezid/client.rb in ezid-client-0.6.0

- old
+ new

@@ -105,10 +105,11 @@ # @param shoulder [String] the shoulder on which to mint a new identifier # @param metadata [String, Hash, Ezid::Metadata] metadata to set # @raise [Ezid::Error] # @return [Ezid::Response] the response - def mint_identifier(shoulder, metadata=nil) + def mint_identifier(shoulder=nil, metadata=nil) + shoulder ||= config.default_shoulder raise Error, "Shoulder missing -- cannot mint identifier." unless shoulder response = Request.execute(:Post, "/shoulder/#{shoulder}") do |request| add_authentication(request) add_metadata(request, metadata) end