lib/contentful/array.rb
def next_page(client = nil)
      return false if client.nil?
      return false if items.first.nil?

      new_skip = (skip || 0) + (limit || DEFAULT_LIMIT)

      plurals = {
        'Space' => 'spaces',
        'ContentType' => 'content_types',
        'Entry' => 'entries',
        'Asset' => 'assets',
        'Locale' => 'locales'
      }
      client.public_send(plurals[items.first.type], limit: limit, skip: new_skip)
    end
def next_page(client = nil)
      return false if client.nil?
      return false if items.first.nil?

      new_skip = (skip || 0) + (limit || DEFAULT_LIMIT)

      plurals = {
        'Space' => 'spaces',
        'ContentType' => 'content_types',
        'Entry' => 'entries',
        'Asset' => 'assets',
        'Locale' => 'locales'
      }
      client.public_send(plurals[items.first.type], limit: limit, skip: new_skip)
    end
def next_page ( client = nil ) return false if client . nil? return false if items . first . nil? new_skip = ( skip || 0 ) + ( limit || DEFAULT_LIMIT ) plurals = { 'Space' => 'spaces' , 'ContentType' => 'content_types' , 'Entry' => 'entries' , 'Asset' => 'assets' , 'Locale' => 'locales' } client . public_send ( plurals [ items . first . type ] , limit : limit , skip : new_skip ) end
Simplifies pagination

 @return [Contentful::Array, false]
Simplifies pagination