Sha256: efda8bcfca0ff018000618e42937f80ef657c9db9ea55008200a7a6a05dd1504
Contents?: true
Size: 585 Bytes
Versions: 13
Compression:
Stored size: 585 Bytes
Contents
#!/usr/bin/env ruby -rubygems require File.join(File.dirname(__FILE__), 'authentication') collection = StorageRoom::Collection.find('4d960916ba05617333000005') puts "Nested Loops:\n\n" # Iterate over all pages of entries with nested loops collection.entries.each_page do |array| puts "== Page: #{array[:@page]} / #{array[:@pages]}" array.resources.each do |entry| puts "Entry: #{entry.name}" end end puts "Single helper:\n\n" # Iterate over all entries on all pages with one helper collection.entries.each_page_each_resource do |entry| puts "Entry: #{entry.name}" end
Version data entries
13 entries across 13 versions & 1 rubygems