lib/rocket_job/sliced/slices.rb in rocketjob-5.3.3 vs lib/rocket_job/sliced/slices.rb in rocketjob-5.4.0.beta1
- old
+ new
@@ -40,9 +40,15 @@
slice = new(params)
slice.save!
slice
end
+ # Returns whether this collection contains specialized binary slices for creating binary data from each slice
+ # that is then just downloaded as-is into output files.
+ def binary?
+ slice_class.binary?
+ end
+
# Returns output slices in the order of their id
# which is usually the order in which they were written.
def each
all.sort(id: 1).each { |document| yield(document) }
end