Class: LiveJournal::Request::GetChallenge
- 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
-
#initialize ⇒ GetChallenge
constructor
A new instance of GetChallenge.
-
#run ⇒ Object
Returns the challenge.
Methods inherited from Req
#dryrun!, #dumpresponse, #verbose!
Constructor Details
#initialize ⇒ GetChallenge
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
#run ⇒ Object
Returns the challenge.
132 133 134 135 |
# File 'lib/livejournal/request.rb', line 132 def run super return @result['challenge'] end |