Module: Resync::Client::Mixins::Dump

Included in:
Resync::ChangeDump, ResourceDump
Defined in:
lib/resync/client/mixins/dump.rb

Overview

A list of resources each of which refers to a zipped bitstream package.

Instance Method Summary collapse

Instance Method Details

#resources=(value) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/resync/client/mixins/dump.rb', line 10

def resources=(value)
  super
  resources.each do |r|
    next if r.respond_to?(:zip_package)
    class << r
      prepend ZippedResource
    end
  end
end

#zip_packagesResync::Client::Zip::ZipPackages

A list (downloaded lazily) of the Zip::ZipPackages for each resource



22
23
24
# File 'lib/resync/client/mixins/dump.rb', line 22

def zip_packages
  @zip_packages ||= Resync::Client::Zip::ZipPackages.new(resources)
end