Method: RTX::API::Collection#all_resources
- Defined in:
- lib/rtx/api/collection.rb
permalink #all_resources(initial_page = 1, &block) ⇒ Object
Allows you to loop through all of the resources within the pages specified and retrieve the records
120 121 122 123 124 125 126 |
# File 'lib/rtx/api/collection.rb', line 120 def all_resources(initial_page = 1, &block) all_pages(initial_page) do |page| page.each do |resource| block.call(resource) end end end |