Class: EhbrsRubyUtils::Bga::TableWhatsappFormatter::FormatPlayer
- Inherits:
-
Object
- Object
- EhbrsRubyUtils::Bga::TableWhatsappFormatter::FormatPlayer
- Defined in:
- lib/ehbrs_ruby_utils/bga/table_whatsapp_formatter/format_player.rb
Constant Summary collapse
- FIELD_SEPARATOR =
' - '
Instance Method Summary collapse
Instance Method Details
#result ⇒ Object
14 15 16 |
# File 'lib/ehbrs_ruby_utils/bga/table_whatsapp_formatter/format_player.rb', line 14 def result %w[table_rank name score].map { |v| send(v) }.join(FIELD_SEPARATOR) end |
#score ⇒ Object
24 25 26 |
# File 'lib/ehbrs_ruby_utils/bga/table_whatsapp_formatter/format_player.rb', line 24 def score "⭐ #{player.score}" end |
#table_rank ⇒ Object
18 19 20 |
# File 'lib/ehbrs_ruby_utils/bga/table_whatsapp_formatter/format_player.rb', line 18 def table_rank "*#{player.rank}º*" end |