class Turbot::Handlers::BaseHandler

Public Instance Methods

handle_invalid_json(line) click to toggle source

Implements `TurbotRunner::BaseHandler#handle_invalid_json`.

# File lib/turbot/handlers/base_handler.rb, line 14
def handle_invalid_json(line)
  puts
  puts 'The following line was not valid JSON:'
  puts line
end
handle_invalid_record(record, data_type, error_message) click to toggle source

Implements `TurbotRunner::BaseHandler#handle_invalid_record`.

# File lib/turbot/handlers/base_handler.rb, line 5
def handle_invalid_record(record, data_type, error_message)
  puts
  puts 'The following record is invalid:'
  puts record.to_json
  puts " * #{error_message}"
  puts
end