Sha256: c5d7440838508d5dc2b1e76362a4bf72c9bc5115ad75de516563aa159d7cae3d

Contents?: true

Size: 267 Bytes

Versions: 7

Compression:

Stored size: 267 Bytes

Contents

class Core::UseCases::Contract::Pagination
  def call
    pagination
  end

  private

  def pagination
    Dry::Schema.Params do
      optional(:page).maybe(:integer)
      optional(:per_page).maybe(:integer)
      optional(:search).maybe(:string)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rider-kick-0.0.8 lib/generators/rider_kick/templates/domains/core/use_cases/contract/pagination.rb.tt
rider-kick-0.0.7 lib/generators/rider_kick/templates/domains/core/use_cases/contract/pagination.rb.tt
rider-kick-0.0.6 lib/generators/rider_kick/templates/domains/core/use_cases/contract/pagination.rb.tt
rider-kick-0.0.5 lib/generators/rider_kick/templates/domains/core/use_cases/contract/pagination.rb.tt
rider-kick-0.0.4 lib/generators/rider_kick/templates/domains/core/use_cases/contract/pagination.rb.tt
rider-kick-0.0.3 lib/generators/rider_kick/templates/domains/core/use_cases/contract/pagination.rb.tt
rider-kick-0.0.2 lib/generators/rider_kick/templates/domains/core/use_cases/contract/pagination.rb.tt