lib/datacite/mapping/contributor.rb in datacite-mapping-0.4.1 vs lib/datacite/mapping/contributor.rb in datacite-mapping-0.5.0

- old
+ new

@@ -85,10 +85,10 @@ # Initializes a new {Contributor}. # @param name [String] the personal name of the contributor, in the format `Family, Given`. Cannot be empty or nil # @param identifier [NameIdentifier, nil] an identifier for the contributor. Optional. # @param affiliations [Array<Affiliation>] the contributor's affiliations. Defaults to an empty list. # @param type [ContributorType] the contributor type. Cannot be nil. - def initialize(name:, identifier: nil, affiliations: nil, type:) + def initialize(name:, type:, identifier: nil, affiliations: nil) self.name = name self.identifier = identifier self.affiliations = affiliations || [] self.type = type end