Class: SportsManager::SolutionDrawer::CLI::SolutionTable

Inherits:
Object
  • Object
show all
Defined in:
lib/sports_manager/solution_drawer/cli/solution_table.rb

Constant Summary collapse

TIME_TEMPLATE =
'%d/%m at %H:%M'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(solution) ⇒ SolutionTable

Returns a new instance of SolutionTable.



11
12
13
# File 'lib/sports_manager/solution_drawer/cli/solution_table.rb', line 11

def initialize(solution)
  @fixtures = solution.fixtures
end

Instance Attribute Details

#fixturesObject (readonly)

Returns the value of attribute fixtures.



9
10
11
# File 'lib/sports_manager/solution_drawer/cli/solution_table.rb', line 9

def fixtures
  @fixtures
end

Instance Method Details

#drawObject



15
16
17
# File 'lib/sports_manager/solution_drawer/cli/solution_table.rb', line 15

def draw
  Table.draw(formatted_fixtures)
end