Class: Que::Web::Viewmodels::Dashboard
- Inherits:
-
Struct
- Object
- Struct
- Que::Web::Viewmodels::Dashboard
- Defined in:
- lib/que/web/viewmodels/dashboard.rb
Instance Attribute Summary collapse
-
#failing ⇒ Object
Returns the value of attribute failing.
-
#running ⇒ Object
Returns the value of attribute running.
-
#scheduled ⇒ Object
Returns the value of attribute scheduled.
Instance Method Summary collapse
-
#initialize(stats) ⇒ Dashboard
constructor
A new instance of Dashboard.
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.to_s] end end |
Instance Attribute Details
#failing ⇒ Object
Returns the value of attribute failing
2 3 4 |
# File 'lib/que/web/viewmodels/dashboard.rb', line 2 def failing @failing end |
#running ⇒ Object
Returns the value of attribute running
2 3 4 |
# File 'lib/que/web/viewmodels/dashboard.rb', line 2 def running @running end |
#scheduled ⇒ Object
Returns the value of attribute scheduled
2 3 4 |
# File 'lib/que/web/viewmodels/dashboard.rb', line 2 def scheduled @scheduled end |