Class: FuzzBert::Handler::Console

Inherits:
Object
  • Object
show all
Includes:
ConsoleHelper
Defined in:
lib/fuzzbert/error_handler.rb

Instance Method Summary collapse

Methods included from ConsoleHelper

#info

Constructor Details

#initializeConsole

Returns a new instance of Console.



59
60
61
# File 'lib/fuzzbert/error_handler.rb', line 59

def initialize
  $stdout.sync = true
end

Instance Method Details

#handle(error_data) ⇒ Object



63
64
65
66
# File 'lib/fuzzbert/error_handler.rb', line 63

def handle(error_data)
  puts "#{error_data[:id]} failed. Data: #{error_data[:data].inspect}"
  info(error_data)
end