Class: LiveJournal::Request::SessionGenerate

Inherits:
Req
  • Object
show all
Defined in:
lib/livejournal/sync.rb

Overview

This is only used for generating sessions used for syncing comments. It is used by ljrb internally.

Instance Method Summary collapse

Methods inherited from Req

#dryrun!, #dumpresponse, #verbose!

Constructor Details

#initialize(user) ⇒ SessionGenerate

Returns a new instance of SessionGenerate.



74
75
76
# File 'lib/livejournal/sync.rb', line 74

def initialize(user)
  super(user, 'sessiongenerate')
end

Instance Method Details

#runObject

Returns the LJ session.



78
79
80
81
# File 'lib/livejournal/sync.rb', line 78

def run
  super
  @result['ljsession']
end