Class: Resync::ChangeDump
- Inherits:
-
Object
- Object
- Resync::ChangeDump
- Includes:
- Resync::Client::Mixins::Dump
- Defined in:
- lib/resync/client/mixins/dump.rb
Instance Method Summary collapse
-
#all_zip_packages(in_range: nil) ⇒ Enumerator::Lazy<Resync::Resource>
Delegates to #zip_packages for interoperation with Resync::ChangeDumpIndex#all_zip_packages.
-
#zip_packages(in_range: nil) ⇒ Array<Promise<Resync::Client::Zip::ZipPackage>>
A list (downloaded lazily) of the Resync::Client::Zip::ZipPackages for each resource If a time range parameter is provided, the lists of packages is filtered by
from_time
anduntil_time
, in non-strict mode (only excluding those lists provably not in the range, i.e., including packages withoutfrom_time
oruntil_time
).
Methods included from Resync::Client::Mixins::Dump
Instance Method Details
#all_zip_packages(in_range: nil) ⇒ Enumerator::Lazy<Resync::Resource>
Delegates to #zip_packages for interoperation with Resync::ChangeDumpIndex#all_zip_packages.
65 66 67 |
# File 'lib/resync/client/mixins/dump.rb', line 65 def all_zip_packages(in_range: nil) zip_packages(in_range: in_range).lazy end |
#zip_packages(in_range: nil) ⇒ Array<Promise<Resync::Client::Zip::ZipPackage>>
A list (downloaded lazily) of the Resync::Client::Zip::ZipPackages for each resource If a time range parameter is provided, the lists of packages is filtered by from_time
and until_time
, in non-strict mode (only excluding those lists provably not in the range, i.e., including packages without from_time
or until_time
).
53 54 55 56 57 58 59 60 |
# File 'lib/resync/client/mixins/dump.rb', line 53 def zip_packages(in_range: nil) if in_range change_lists = change_lists(in_range: in_range, strict: false) change_lists.map { |r| promise { r.zip_package } } else super() end end |