Class: EhbrsRubyUtils::Bga::Table::WhatsappFormatters::Ending::FormatPlayer

Inherits:
Base::FormatPlayer
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb

Constant Summary collapse

FIELDS =
%w[table_rank name score].freeze

Constants inherited from Base::FormatPlayer

Base::FormatPlayer::FIELD_SEPARATOR

Instance Method Summary collapse

Methods inherited from Base::FormatPlayer

#result

Instance Method Details

#fieldsObject



16
17
18
# File 'lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb', line 16

def fields
  FIELDS
end

#scoreObject



24
25
26
# File 'lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb', line 24

def score
  "#{player.score}"
end

#table_rankObject



20
21
22
# File 'lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb', line 20

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