Sha256: f9cdafb1cbf0b23660a354ce003fb55776f671e0b1c1865e0b8041a531192e82

Contents?: true

Size: 198 Bytes

Versions: 7

Compression:

Stored size: 198 Bytes

Contents

module Que::Web::Viewmodels
  class Dashboard < Struct.new(:running, :scheduled, :failing)
    def initialize(stats)
      members.each do |m|
        self[m] = stats[m]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
que-web-0.10.0 lib/que/web/viewmodels/dashboard.rb
que-web-0.9.4 lib/que/web/viewmodels/dashboard.rb
que-web-0.9.3 lib/que/web/viewmodels/dashboard.rb
que-web-0.9.2 lib/que/web/viewmodels/dashboard.rb
que-web-0.9.1 lib/que/web/viewmodels/dashboard.rb
que-web-0.9.0 lib/que/web/viewmodels/dashboard.rb
que-web-0.8.0 lib/que/web/viewmodels/dashboard.rb