You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: slack_default_formatter.rb
    path of file: ./repos/data_checks/lib/data_checks/notifiers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module DataChecks
  module Notifiers
    class SlackDefaultFormatter
      def initialize(check_result)
        @check_run = check_result.c
    
      def text
        error = @check_run.error_message
        count = @check_result.count
        entries = @check_result.entries&.map { |entry| format_entry(entry) }

        if error
          escape(error)
        else
          text = ["Checker found #{count} element(s)."]
          if entries
            if count > 10
              text << "Showing 10 of #{count} entries"
            end