Sha256: 5267e9ebc8da782812b1a7143b1ea36abb7d198b5291a3ab8438e7f686d38f9a

Contents?: true

Size: 316 Bytes

Versions: 22

Compression:

Stored size: 316 Bytes

Contents

module Que::Web::Viewmodels
  class JobList
    extend Forwardable
    attr_reader :page_jobs, :pager

    def_delegators :@pager, :total, :next_page, :prev_page, :current_page, :page_count

    def initialize(page_jobs, pager)
      @page_jobs = page_jobs.map{|j| Job.new(j)}
      @pager = pager
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
que-web-0.10.0 lib/que/web/viewmodels/job_list.rb
que-web-0.9.4 lib/que/web/viewmodels/job_list.rb
que-web-0.9.3 lib/que/web/viewmodels/job_list.rb
que-web-0.9.2 lib/que/web/viewmodels/job_list.rb
que-web-0.9.1 lib/que/web/viewmodels/job_list.rb
que-web-0.9.0 lib/que/web/viewmodels/job_list.rb
que-web-0.8.0 lib/que/web/viewmodels/job_list.rb
que-web-0.7.2 lib/que/web/viewmodels/job_list.rb
que-web-0.7.1 lib/que/web/viewmodels/job_list.rb
que-web-0.7.0 lib/que/web/viewmodels/job_list.rb
que-web-0.6.3 lib/que/web/viewmodels/job_list.rb
que-web-0.6.2 lib/que/web/viewmodels/job_list.rb
que-web-0.6.1 lib/que/web/viewmodels/job_list.rb
que-web-0.6.0 lib/que/web/viewmodels/job_list.rb
que-web-0.5.0 lib/que/web/viewmodels/job_list.rb
que-web-0.4.0 lib/que/web/viewmodels/job_list.rb
que-web-0.3.2 lib/que/web/viewmodels/job_list.rb
que-web-0.3.1 lib/que/web/viewmodels/job_list.rb
que-web-0.3.0 lib/que/web/viewmodels/job_list.rb
que-web-0.2.2 lib/que/web/viewmodels/job_list.rb