class Big3::GameManager
Attributes
ids[RW]
Public Class Methods
new(args={})
click to toggle source
# File lib/big_3/game_manager.rb, line 5 def initialize(args={}) @ids = args[:ids] end
Public Instance Methods
create_games()
click to toggle source
# File lib/big_3/game_manager.rb, line 9 def create_games unordered_games = ids.map { |id| Game.new(id) } games = unordered_games.sort! { |a, b| a.date <=> b.date } games end