Class: Marty::Diagnostic::Fatal
- Inherits:
-
Base
- Object
- ActiveRecord::Base
- Base
- Marty::Diagnostic::Fatal
- 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
Class Method Details
.message(msg, opts = {}) ⇒ Object
2 3 4 5 6 |
# File 'lib/marty/diagnostic/fatal.rb', line 2 def self. msg, opts = {} node = opts[:node] || Node.my_ip type = opts[:type] || 'RuntimeError' { name.demodulize => { node => { type => error(msg) } } } end |