Class: Marty::Diagnostic::Collection

Inherits:
Base show all
Defined in:
lib/marty/diagnostic/collection.rb

Class Method Summary collapse

Methods inherited from Base

get_final_attrs, get_struct_attrs, make_hash, make_openstruct, mcfly_pt

Methods inherited from ActiveRecord::Base

joins, old_joins

Class Method Details

.generateObject



7
8
9
10
11
# File 'lib/marty/diagnostic/collection.rb', line 7

def self.generate
  raise 'No diagnostics assigned to collection.' if diagnostics.empty?

  diagnostics.map(&:generate).reduce(:deep_merge)
end