Sha256: d52ba0a2f6172270d727bd885b6fa8380de3e5d31659a3cfdc5b1e48c4c02288

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

module Paginate
  class Configuration
    attr_accessor :size
    attr_accessor :param_name
    attr_accessor :renderer

    def initialize
      @param_name = :page
      @size  = 10
      @renderer = Renderer::List
    end

    def to_hash
      {
        size: size,
        param_name: param_name,
        renderer: renderer
      }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paginate-4.0.1 lib/paginate/configuration.rb
paginate-4.0.0 lib/paginate/configuration.rb