Sha256: 59c82b12738a99cf63e7da5e7adf6c24a3398c4d16fb18ba04a22dbaa99cf50b

Contents?: true

Size: 295 Bytes

Versions: 11

Compression:

Stored size: 295 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

11 entries across 11 versions & 1 rubygems

Version Path
marty-1.2.9 other/marty/diagnostic/collection.rb
marty-1.2.8 other/marty/diagnostic/collection.rb
marty-1.2.7 other/marty/diagnostic/collection.rb
marty-1.2.6 other/marty/diagnostic/collection.rb
marty-1.2.5 other/marty/diagnostic/collection.rb
marty-1.2.4 other/marty/diagnostic/collection.rb
marty-1.2.3 other/marty/diagnostic/collection.rb
marty-1.2.2 other/marty/diagnostic/collection.rb
marty-1.2.1 app/models/marty/diagnostic/collection.rb
marty-1.2.0 app/models/marty/diagnostic/collection.rb
marty-1.1.9 app/models/marty/diagnostic/collection.rb