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.



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

def initialize
  $stdout.sync = true
end

Instance Method Details

#handle(error_data) ⇒ Object



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

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