Class: LiveJournal::Request::SessionGenerate
- 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
-
#initialize(user) ⇒ SessionGenerate
constructor
A new instance of SessionGenerate.
-
#run ⇒ Object
Returns the LJ session.
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
#run ⇒ Object
Returns the LJ session.
78 79 80 81 |
# File 'lib/livejournal/sync.rb', line 78 def run super @result['ljsession'] end |