module Rubyoverflow class PagedBase < Base attr_reader :total, :pagesize, :page, :request_path, :query_parameters def initialize(dash, request_path) @total = dash.total @page = dash.page @pagesize = dash.pagesize @request_path,@query_parameters = find_parse_querystring(request_path) end def next_page_parameters() temp = @query_parameters if @page.respond_to?(:to_int) temp['page'] = @page.to_i + 1 else temp["page"] = 2 end return temp end def perform_next_page_request() request(@request_path,next_page_parameters) end end end