Class: Stew::Community::ProfileGames
- Inherits:
-
Object
- Object
- Stew::Community::ProfileGames
- Includes:
- Enumerable
- Defined in:
- lib/stew/community/profile_games.rb
Overview
Represents the ProfileGame instances owned by a steam id
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(data) ⇒ ProfileGames
constructor
A new instance of ProfileGames.
Constructor Details
#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 |
Instance Method Details
#each(&block) ⇒ Object
12 13 14 |
# File 'lib/stew/community/profile_games.rb', line 12 def each(&block) @games.each(&block) end |