Method: Facebooker::User#friends=
- Defined in:
- lib/facebooker/models/user.rb
#friends=(list_of_friends, flid = nil) ⇒ Object
Set the list of friends, given an array of User objects. If the list has been retrieved previously, will not set
84 85 86 87 88 89 90 91 |
# File 'lib/facebooker/models/user.rb', line 84 def friends=(list_of_friends,flid=nil) @friends_hash ||= {} flid=cast_to_friend_list_id(flid) #use __blank instead of nil so that this is cached cache_key = flid||"__blank" @friends_hash[cache_key] ||= list_of_friends end |