Class: Marty::Diagnostic::Collection
- Inherits:
-
Base
- Object
- ActiveRecord::Base
- Base
- Marty::Diagnostic::Collection
- 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
Class Method Details
.generate ⇒ Object
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 |