Class: Crashdesk::Reporters::Stderr

Inherits:
Object
  • Object
show all
Defined in:
lib/crashdesk/reporters/stderr.rb

Instance Method Summary collapse

Constructor Details

#initialize(params = nil) ⇒ Stderr

Returns a new instance of Stderr.



5
6
7
# File 'lib/crashdesk/reporters/stderr.rb', line 5

def initialize(params = nil)
  $stderr.puts "Stderr initialized with: #{params}"
end

Instance Method Details

#run(crashlog) ⇒ Object



9
10
11
12
# File 'lib/crashdesk/reporters/stderr.rb', line 9

def run(crashlog)
  require 'pp'
  $stderr.puts "Stderr initialized with: #{pp(crashlog.to_hash)}"
end