Class: Stew::Community::ProfileGames

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/stew/community/profile_games.rb

Overview

Represents the ProfileGame instances owned by a steam id

Instance Method Summary collapse

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