Class: Que::Web::Viewmodels::Dashboard

Inherits:
Struct
  • Object
show all
Defined in:
lib/que/web/viewmodels/dashboard.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stats) ⇒ Dashboard

Returns a new instance of Dashboard.



3
4
5
6
7
# File 'lib/que/web/viewmodels/dashboard.rb', line 3

def initialize(stats)
  members.each do |m|
    self[m] = stats[m]
  end
end

Instance Attribute Details

#failingObject

Returns the value of attribute failing

Returns:

  • (Object)

    the current value of failing



2
3
4
# File 'lib/que/web/viewmodels/dashboard.rb', line 2

def failing
  @failing
end

#runningObject

Returns the value of attribute running

Returns:

  • (Object)

    the current value of running



2
3
4
# File 'lib/que/web/viewmodels/dashboard.rb', line 2

def running
  @running
end

#scheduledObject

Returns the value of attribute scheduled

Returns:

  • (Object)

    the current value of scheduled



2
3
4
# File 'lib/que/web/viewmodels/dashboard.rb', line 2

def scheduled
  @scheduled
end