Class: Stew::Community::ProfileFriends

Inherits:
Object
  • Object
show all
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

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)}
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