Method: Stew::Community::ProfileGames#initialize
- Defined in:
- lib/stew/community/profile_games.rb
#initialize(data) ⇒ ProfileGames
Returns a new instance of ProfileGames.
8 9 10 |
# File 'lib/stew/community/profile_games.rb', line 8 def initialize(data) @games = Array.new(data.map{|game| ProfileGame.new(game)}) end |