Sha256: 0486faea807e3062b516f61ff8f2bc8275307adf31c30366818d6b2f34118923

Contents?: true

Size: 185 Bytes

Versions: 12

Compression:

Stored size: 185 Bytes

Contents

# frozen_string_literal: true

class DHS::Pagination::TotalPages < DHS::Pagination::Page

  def total
    (data._raw.dig(*_record.total_key) || 0) * limit
  end
  alias count total
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dhs-1.6.0 lib/dhs/pagination/total_pages.rb
dhs-1.5.0 lib/dhs/pagination/total_pages.rb
dhs-1.4.2 lib/dhs/pagination/total_pages.rb
dhs-1.4.1 lib/dhs/pagination/total_pages.rb
dhs-1.4.0 lib/dhs/pagination/total_pages.rb
dhs-1.3.0 lib/dhs/pagination/total_pages.rb
dhs-1.2.0 lib/dhs/pagination/total_pages.rb
dhs-1.1.0 lib/dhs/pagination/total_pages.rb
dhs-1.0.3 lib/dhs/pagination/total_pages.rb
dhs-1.0.2 lib/dhs/pagination/total_pages.rb
dhs-1.0.1 lib/dhs/pagination/total_pages.rb
dhs-1.0.0 lib/dhs/pagination/total_pages.rb