Sha256: b6e87ce9a5c0247e4c8dc38c10594cddf050c61eb3e0aff45566c529de466c8b

Contents?: true

Size: 658 Bytes

Versions: 20

Compression:

Stored size: 658 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].freeze
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
slack-ruby-bot-server-2.1.1 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-2.1.0 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-2.0.1 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-1.2.1 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-1.2.0 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-1.1.0 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-1.0.0 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.12.3 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.12.2 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.12.1 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.12.0 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.11.1 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.11.0 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.10.0 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.9.0 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.8.3 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.8.2 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.8.1 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.8.0 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb
slack-ruby-bot-server-0.7.0 lib/slack-ruby-bot-server/api/helpers/pagination_parameters.rb