Method: ContentfulModel::Query#each_entry

Defined in:
lib/contentful_model/query.rb

#each_entry(per_page = 100, order_field = 'sys.updatedAt', additional_options = {}, &block) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/contentful_model/query.rb', line 61

def each_entry(per_page = 100, order_field = 'sys.updatedAt', additional_options = {}, &block)
  each_page(per_page, order_field, additional_options) do |page|
    page.each do |entry|
      block[entry]
    end
  end
end