Sha256: 84016bdde17ebf35c340685cc388f6c4c5402086ae0d97247de60a1cbda69a37

Contents?: true

Size: 763 Bytes

Versions: 15

Compression:

Stored size: 763 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'
require 'ehbrs_ruby_utils/bga/table/whatsapp_formatters/base/format_player'

module EhbrsRubyUtils
  module Bga
    class Table
      module WhatsappFormatters
        class Ending < ::EhbrsRubyUtils::Bga::Table::WhatsappFormatters::Base
          class FormatPlayer < ::EhbrsRubyUtils::Bga::Table::WhatsappFormatters::Base::FormatPlayer
            acts_as_instance_method

            FIELDS = %w[table_rank name score].freeze

            def fields
              FIELDS
            end

            def table_rank
              "*#{player.rank}º*"
            end

            def score
              "⭐ #{player.score}"
            end
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ehbrs_ruby_utils-0.44.3 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.44.2 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.44.1 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.44.0 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.41.1 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.41.0 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.40.0 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.39.0 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.38.0 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.37.0 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.36.1 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.36.0 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.35.0 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.33.0 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
ehbrs_ruby_utils-0.32.0 lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb