lib/slack-ruby-bot-server/api/presenters/paginated_presenter.rb
# replace the page and offset parameters in the query string
replace the page and offset parameters in the query string
replace the page and offset parameters in the query string
def query_string_for_cursor(cursor, opts)
          qs = Hashie::Mash.new(Rack::Utils.parse_nested_query(opts[:env]['QUERY_STRING']))
          if cursor
            qs[:cursor] = cursor
            qs.delete(:offset)
          end
          "?#{qs.to_query}" unless qs.empty?
        end
def query_string_for_cursor ( cursor , opts ) qs = Hashie :: Mash . new ( Rack :: Utils . parse_nested_query ( opts [ :env ] [ 'QUERY_STRING' ] ) ) if cursor qs [ :cursor ] = cursor qs . delete ( :offset ) end "?#{qs.to_query}" unless qs . empty? end
replace the page and offset parameters in the query string
replace the page and offset parameters in the query string
cursor
<not_specific>
opts
<not_specific>