def next(options = {}, invalidate = true)
      if @next.nil?
        fail NoNextPageError
      end
      if invalidate
        self.invalidate
      end
      options = @options.merge(options)
      response = self.class.get(@next['href'], options)
      if response.success?
        page = self.class.new(type: @type)
        page.deserialize(response)
        page
      else
        fail HttpError, response.response
      end
    end
def next(options = {}, invalidate = true)
      if @next.nil?
        fail NoNextPageError
      end
      if invalidate
        self.invalidate
      end
      options = @options.merge(options)
      response = self.class.get(@next['href'], options)
      if response.success?
        page = self.class.new(type: @type)
        page.deserialize(response)
        page
      else
        fail HttpError, response.response
      end
    end
Create a ResourcePage of the specified type.
 hash:: A hash of values to set on instance variables. :type is required.


 :category: CRUD

 Returns the next page.
 Raises NoNextPageError if the is none.
 options:: A hash of options to send with the request.
 invalidate:: Invalidates it when true, skips invalidation when false.