Sha256: 37e2ed60851aa662c0c3fe0ec20b21310f608ebad698750050fbe83929724917
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyoverflow-1.0.2 | lib/rubyoverflow/pagedBase.rb |