Sha256: f30ca7e63d8c9c325857de73324548f3b22f607fb1323b619ba634ec4c4916ba

Contents?: true

Size: 251 Bytes

Versions: 11

Compression:

Stored size: 251 Bytes

Contents

format do
  def limit_param
    @limit ||=
      Env.params[:limit].present? ? Env.params.delete(:limit).to_i : default_limit
  end

  def offset_param
    @offset ||=
      Env.params[:offset].present? ? Env.params.delete(:offset).to_i : 0
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
card-1.93.5 mod/pointer/set/abstract/00_paging_params.rb
card-1.93.4 mod/pointer/set/abstract/00_paging_params.rb
card-1.93.3 mod/pointer/set/abstract/00_paging_params.rb
card-1.93.2 mod/pointer/set/abstract/00_paging_params.rb
card-1.93.1 mod/pointer/set/abstract/00_paging_params.rb
card-1.93.0 mod/pointer/set/abstract/00_paging_params.rb
card-1.92.2 mod/pointer/set/abstract/00_paging_params.rb
card-1.92.1 mod/pointer/set/abstract/00_paging_params.rb
card-1.92 mod/pointer/set/abstract/00_paging_params.rb
card-1.91 mod/pointer/set/abstract/00_paging_params.rb
card-1.21.0 mod/pointer/set/abstract/00_paging_params.rb