lib/stash/wrapper/stash_wrapper.rb in stash-wrapper-0.1.9 vs lib/stash/wrapper/stash_wrapper.rb in stash-wrapper-0.1.10

- old
+ new

@@ -34,9 +34,11 @@ # with the current date as start and end. # @param inventory [Inventory, nil] the (optional) file inventory # @param descriptive_elements [Array<REXML::Element>] the encapsulated # XML metadata def initialize(identifier:, version:, license:, embargo: nil, inventory: nil, descriptive_elements:) # rubocop:disable Metrics/ParameterLists + fail ArgumentError, "identifier does not appear to be an Identifier object: #{identifier || 'nil'}" unless identifier.is_a?(Identifier) + self.identifier = identifier self.stash_administrative = StashAdministrative.new( version: version, license: license, embargo: embargo,