Sha256: e189d54c28ac2092b07a5babae8833b08240ef8efd996edcd19f26725c8c6b2c

Contents?: true

Size: 651 Bytes

Versions: 2

Compression:

Stored size: 651 Bytes

Contents

module SlackRubyBotServer
  module Api
    module Helpers
      module PaginationParameters
        extend Grape::API::Helpers

        params :pagination do
          optional :offset, type: Integer, desc: 'Offset from which to retrieve.'
          optional :size, type: Integer, desc: 'Number of items to retrieve for this page or from the current offset.'
          optional :cursor, type: String, desc: 'Cursor for pagination.'
          optional :total_count, desc: 'Include total count in the response.'
          mutually_exclusive :offset, :cursor
        end

        ALL = %w(cursor size sort offset total_count)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.1.1 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.1.0 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb