Method: Force::Collection#each

Defined in:
lib/force/collection.rb

#eachObject

Yield each value on each page.



13
14
15
16
17
# File 'lib/force/collection.rb', line 13

def each
  @raw_page['records'].each { |record| yield Force::Mash.build(record, @client) }

  next_page.each { |record| yield record } if has_next_page?
end