Sha256: f5454210ed38d5379f7ae9fb5a46992023f7caa0870f90a36b07c95dd3c92f0a
Contents?: true
Size: 1.15 KB
Versions: 6
Compression:
Stored size: 1.15 KB
Contents
require 'xml/mapping' require 'stash/wrapper/version' require 'stash/wrapper/license' require 'stash/wrapper/embargo' require 'stash/wrapper/inventory' module Stash module Wrapper # Mapping for `<st:stash_administrative>` class StashAdministrative include ::XML::Mapping object_node :version, 'version', class: Version object_node :license, 'license', class: License object_node :embargo, 'embargo', class: Embargo object_node :inventory, 'inventory', class: Inventory # Creates a new {StashAdministrative} # # @param version [Version] the version # @param license [License] the license # @param embargo [Embargo, nil] the embargo information. If no `Embargo` # is supplied, it will default to an embargo of type {EmbargoType::NONE} # with the current date as start and end. # @param inventory [Inventory, nil] the (optional) file inventory def initialize(version:, license:, embargo: nil, inventory: nil) self.version = version self.license = license self.embargo = embargo || Embargo.none self.inventory = inventory end end end end
Version data entries
6 entries across 6 versions & 1 rubygems