Class: Stew::Community::ProfileFriends
- Inherits:
-
Object
- Object
- Stew::Community::ProfileFriends
- Includes:
- Enumerable
- Defined in:
- lib/stew/community/profile_friends.rb
Overview
Represents the friends of a Steam profile Enumerates a list of Steam Id instances
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(data) ⇒ ProfileFriends
constructor
A new instance of ProfileFriends.
Constructor Details
#initialize(data) ⇒ ProfileFriends
Returns a new instance of ProfileFriends.
9 10 11 |
# File 'lib/stew/community/profile_friends.rb', line 9 def initialize(data) @friends = data.map {|friend| SteamId.new(friend['steamid'])} end |
Instance Method Details
#each(&block) ⇒ Object
13 14 15 |
# File 'lib/stew/community/profile_friends.rb', line 13 def each(&block) @friends.each(&block) end |