Class: Roadworker::Collection
- Inherits:
-
Object
- Object
- Roadworker::Collection
- Defined in:
- lib/roadworker/collection.rb
Class Method Summary collapse
Class Method Details
.batch(pageable_response, collection_name) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/roadworker/collection.rb', line 5 def batch(pageable_response, collection_name) pageable_response.each do |response| response.public_send(collection_name).each do |item| yield(item) end end end |