class LiveJournal::Request::FriendOfs
See Friends
to fetch both friends and friend-ofs in one request.
Attributes
friendofs[R]
Public Class Methods
new(user)
click to toggle source
Calls superclass method
# File lib/livejournal/friends.rb, line 93 def initialize(user) super(user, 'friendof') @friendofs = nil end
Public Instance Methods
run()
click to toggle source
Returns an array of LiveJournal::Friend
.
Calls superclass method
# File lib/livejournal/friends.rb, line 98 def run super @friends = build_array('friendof') { |r| Friend.new.from_request(r) } @friends end