Sha256: 8c8049fb3b5618f341eca395a361b1d761777061c99e417967dad7dd7d3f051b

Contents?: true

Size: 296 Bytes

Versions: 43

Compression:

Stored size: 296 Bytes

Contents

module Marty::Diagnostic; class Collection < Base
  class_attribute :diagnostics

  self.diagnostics = []
  self.status_only = true

  def self.generate
    raise 'No diagnostics assigned to collection.' if diagnostics.empty?
    diagnostics.map{|d| d.generate}.reduce(:deep_merge)
  end
end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
marty-2.5.2 other/marty/diagnostic/collection.rb
marty-2.5.1 other/marty/diagnostic/collection.rb
marty-2.5.0 other/marty/diagnostic/collection.rb
marty-2.4.9 other/marty/diagnostic/collection.rb
marty-2.4.8 other/marty/diagnostic/collection.rb
marty-2.4.7 other/marty/diagnostic/collection.rb
marty-2.4.6 other/marty/diagnostic/collection.rb
marty-2.4.5 other/marty/diagnostic/collection.rb
marty-2.4.4 other/marty/diagnostic/collection.rb
marty-2.4.3 other/marty/diagnostic/collection.rb
marty-2.4.2 other/marty/diagnostic/collection.rb
marty-2.4.1 other/marty/diagnostic/collection.rb
marty-2.4.0 other/marty/diagnostic/collection.rb
marty-2.3.15 other/marty/diagnostic/collection.rb
marty-2.3.14 other/marty/diagnostic/collection.rb
marty-2.3.13 other/marty/diagnostic/collection.rb
marty-2.3.12 other/marty/diagnostic/collection.rb
marty-2.3.11 other/marty/diagnostic/collection.rb
marty-2.3.10 other/marty/diagnostic/collection.rb
marty-2.3.9 other/marty/diagnostic/collection.rb