Module: Resync::Client::Mixins::DumpIndex
- Includes:
- ResourceClientDelegate
- Included in:
- Resync::ChangeDumpIndex, ResourceDumpIndex
- Defined in:
- lib/resync/client/mixins/dump_index.rb
Overview
A resource container whose resources are ZippedResourceLists
Instance Attribute Summary
Attributes included from ClientDelegator
Instance Method Summary collapse
-
#all_zip_packages ⇒ Enumerator::Lazy<Resync::Client::Zip::ZipPackage>
Downloads and parses each resource list and returns a flattened enumeration of all zip packages in each contained list.
Methods included from ResourceClientDelegate
Methods included from ClientDelegator
Instance Method Details
#all_zip_packages ⇒ Enumerator::Lazy<Resync::Client::Zip::ZipPackage>
Downloads and parses each resource list and returns a flattened enumeration of all zip packages in each contained list. Each contained list is only downloaded as needed, and only downloaded once.
15 16 17 18 19 |
# File 'lib/resync/client/mixins/dump_index.rb', line 15 def all_zip_packages resources.lazy.flat_map do |r| package_for(r) end end |