Class: LiveJournal::Request::GetChallenge

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

Overview

Used for LiveJournal’s challenge-response based authentication, and used by ljrb for all requests.

Instance Method Summary collapse

Methods inherited from Req

#dryrun!, #dumpresponse, #verbose!

Constructor Details

#initializeGetChallenge

Returns a new instance of GetChallenge.



128
129
130
# File 'lib/livejournal/request.rb', line 128

def initialize
  super(nil, 'getchallenge')
end

Instance Method Details

#runObject

Returns the challenge.



132
133
134
135
# File 'lib/livejournal/request.rb', line 132

def run
  super
  return @result['challenge']
end