lib/datacite/mapping/nonvalidating/identifier.rb in datacite-mapping-0.1.17.1 vs lib/datacite/mapping/nonvalidating/identifier.rb in datacite-mapping-0.1.17.2

- old
+ new

@@ -7,11 +7,11 @@ # The persistent identifier that identifies the resource. # # @!attribute [r] identifier_type # @return [String] the identifier type (always 'DOI') # @!attribute [rw] value - # @return [String] the identifier value. Must be a valid DOI value (`10.`_registrant code_`/`_suffix_) + # @return [String, nil] the identifier value. Should be a valid DOI value (`10.`_registrant code_`/`_suffix_) class Identifier include XML::Mapping DOI = 'DOI'.freeze @@ -21,11 +21,11 @@ text_node :value, 'text()', default_value: nil fallback_mapping(:_default, :nonvalidating) # Initializes a new {Identifier} - # @param value [String] - # the identifier value. Must be a valid DOI value (`10.`_registrant code_`/`_suffix_) + # @param value [String, nil] + # the identifier value. Should be a valid DOI value (`10.`_registrant code_`/`_suffix_) def initialize(value:) self.identifier_type = DOI self.value = value end