Module: Resync::Client::Mixins::DumpManifest
- Included in:
- Resync::ChangeDumpManifest, ResourceDumpManifest
- Defined in:
- lib/resync/client/mixins/dump_manifest.rb
Overview
A list of resources within a single zipped bitstream package, e.g. as provided by the package manifest.
Instance Attribute Summary collapse
-
#zip_package ⇒ ZipPackage
The package.
Instance Method Summary collapse
-
#resources=(value) ⇒ Object
Makes each provided resource a BitstreamResource.
Instance Attribute Details
#zip_package ⇒ ZipPackage
Returns the package.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/resync/client/mixins/dump_manifest.rb', line 13 module DumpManifest attr_accessor :zip_package # Makes each provided resource a {BitstreamResource} # @param value [Array<Resource>] the resources for this list def resources=(value) super resources.each do |r| unless r.respond_to?(:bitstream) && r.respond_to?(:containing_package) class << r prepend BitstreamResource end end r.zip_package_delegate = self end end end |
Instance Method Details
#resources=(value) ⇒ Object
Makes each provided resource a BitstreamResource
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/resync/client/mixins/dump_manifest.rb', line 18 def resources=(value) super resources.each do |r| unless r.respond_to?(:bitstream) && r.respond_to?(:containing_package) class << r prepend BitstreamResource end end r.zip_package_delegate = self end end |