Class: Que::Web::Viewmodels::JobList

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/que/web/viewmodels/job_list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(page_jobs, pager) ⇒ JobList

Returns a new instance of JobList.



8
9
10
11
# File 'lib/que/web/viewmodels/job_list.rb', line 8

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

Instance Attribute Details

#page_jobsObject (readonly)

Returns the value of attribute page_jobs.



4
5
6
# File 'lib/que/web/viewmodels/job_list.rb', line 4

def page_jobs
  @page_jobs
end

#pagerObject (readonly)

Returns the value of attribute pager.



4
5
6
# File 'lib/que/web/viewmodels/job_list.rb', line 4

def pager
  @pager
end