Sha256: 37b03a0c58c358c83625071f8b791c76dfce1b17b0b0277a5ce92ddbcb32eee7

Contents?: true

Size: 203 Bytes

Versions: 15

Compression:

Stored size: 203 Bytes

Contents

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
que-web-0.7.2 lib/que/web/viewmodels/dashboard.rb
que-web-0.7.1 lib/que/web/viewmodels/dashboard.rb
que-web-0.7.0 lib/que/web/viewmodels/dashboard.rb
que-web-0.6.3 lib/que/web/viewmodels/dashboard.rb
que-web-0.6.2 lib/que/web/viewmodels/dashboard.rb
que-web-0.6.1 lib/que/web/viewmodels/dashboard.rb
que-web-0.6.0 lib/que/web/viewmodels/dashboard.rb
que-web-0.5.0 lib/que/web/viewmodels/dashboard.rb
que-web-0.4.0 lib/que/web/viewmodels/dashboard.rb
que-web-0.3.2 lib/que/web/viewmodels/dashboard.rb
que-web-0.3.1 lib/que/web/viewmodels/dashboard.rb
que-web-0.3.0 lib/que/web/viewmodels/dashboard.rb
que-web-0.2.2 lib/que/web/viewmodels/dashboard.rb
que-web-0.2.1 lib/que/web/viewmodels/dashboard.rb
que-web-0.2.0 lib/que/web/viewmodels/dashboard.rb