lib/ezid/identifier.rb in ezid-client-0.7.0 vs lib/ezid/identifier.rb in ezid-client-0.8.0

- old
+ new

@@ -21,11 +21,11 @@ # EZID status terms PUBLIC = "public" RESERVED = "reserved" UNAVAILABLE = "unavailable" - class << self + class << self attr_accessor :defaults # Creates or mints an identifier (depending on arguments) # @see #save # @return [Ezid::Identifier] the new identifier @@ -78,10 +78,10 @@ raise Error, "Cannot save a deleted identifier." if deleted? persisted? ? modify : create_or_mint reload end - # Updates the metadata + # Updates the metadata # @param attrs [Hash] the metadata # @return [Ezid::Identifier] the identifier def update_metadata(attrs={}) attrs.each { |k, v| send("#{k}=", v) } self