Class: EhbrsRubyUtils::Bga::Table::WhatsappFormatters::Ending
- Defined in:
- lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending.rb,
lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending/format_player.rb
Defined Under Namespace
Classes: FormatPlayer
Constant Summary collapse
- PLAYERS_TITLE =
'Resultado'
- ROOT_ITEMS_TITLE =
'Mesa terminada'
- TITLE_ICON =
0x1F3C6.chr(::Encoding::UTF_8)
Constants inherited from Base
Base::PLAYERS_EXTRA, Base::ROOT_ITENS
Constants included from WhatsappFormatter
WhatsappFormatter::LINE_SEPARATOR, WhatsappFormatter::OPTION_SEPARATOR, WhatsappFormatter::SECTION_SEPARATOR
Instance Method Summary collapse
- #game_conceded_to_s ⇒ String
- #players_extra ⇒ String
- #players_title ⇒ String
- #root_items_title ⇒ String
- #title_icon ⇒ String
Methods inherited from Base
#options, #players, #players_to_s, #root_items, #sections
Methods included from WhatsappFormatter
#content_to_s, #game, #image_local_path, #options_to_s, #section_to_s, #sections, #title_to_s, #to_s
Instance Method Details
#game_conceded_to_s ⇒ String
16 17 18 |
# File 'lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending.rb', line 16 def game_conceded_to_s table.game_conceded? ? "*Derrota admitida*\n\n" : '' end |
#players_extra ⇒ String
21 22 23 |
# File 'lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending.rb', line 21 def players_extra game_conceded_to_s end |
#players_title ⇒ String
26 27 28 |
# File 'lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending.rb', line 26 def players_title PLAYERS_TITLE end |
#root_items_title ⇒ String
31 32 33 |
# File 'lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending.rb', line 31 def root_items_title ROOT_ITEMS_TITLE end |
#title_icon ⇒ String
36 37 38 |
# File 'lib/ehbrs_ruby_utils/bga/table/whatsapp_formatters/ending.rb', line 36 def title_icon TITLE_ICON end |