Class: Marty::Diagnostic::Fatal

Inherits:
Base show all
Defined in:
lib/marty/diagnostic/fatal.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

.message(msg, opts = {}) ⇒ Object



2
3
4
5
6
# File 'lib/marty/diagnostic/fatal.rb', line 2

def self.message msg, opts = {}
  node = opts[:node] || Node.my_ip
  type = opts[:type] || 'RuntimeError'
  { name.demodulize => { node => { type => error(msg) } } }
end