Module: LeagueTrackAbrophy

Defined in:
lib/league_track_abrophy.rb,
lib/league_track_abrophy/version.rb

Overview

takes in score file input and returns the final results for a league

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details

.process(input_array) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/league_track_abrophy.rb', line 10

def self.process(input_array)
  games = input_array.map do |item|
    Game.new(item)
  end
  league = League.new(games)
  league.results.join("\n")
end