lib/datacite/mapping/alternate_identifier.rb in datacite-mapping-0.3.0 vs lib/datacite/mapping/alternate_identifier.rb in datacite-mapping-0.4.0

- old
+ new

@@ -20,16 +20,18 @@ # Sets the type. Cannot be nil. # @param val [String] the identifier type def type=(val) raise ArgumentError, 'No identifier type provided' unless val + @type = val end # Sets the value. Cannot be nil. # @param val [String] the value def value=(val) raise ArgumentError, 'No identifier value provided' unless val + @value = val end root_element_name 'alternateIdentifier' text_node :type, '@alternateIdentifierType'