floriandejonckheere / metal_archives

Metal Archives Web Service Ruby API wrapper
http://floriandejonckheere.github.io/metal_archives/html/
MIT License
15 stars 2 forks source link

Add model iterator #2

Closed floriandejonckheere closed 8 years ago

floriandejonckheere commented 8 years ago

When querying search_by with a large number of objects, allow lazy iterating through the collection:

MetalArchives::Band.search_by(:name => 'test').each do |band|
  ...
end