class LiveJournal::Request::Login

Public Class Methods

new(user) click to toggle source
Calls superclass method
# File lib/livejournal/login.rb, line 30
def initialize(user)
  super(user, 'login')
end

Public Instance Methods

run() click to toggle source

Fills in the fullname of the #User this was created with. (XXX this sould be updated to also get the list of communities, etc.)

Calls superclass method
# File lib/livejournal/login.rb, line 35
def run
  super
  u = @user  # should we clone here?
  u.fullname = @result['name']
  u.journals = @result.select{|k,v| k=~/^access_\d+/}.collect{|k,v| v}.sort
  u
end