Class: Prowler::Token
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
The token returned by the Prowl API to use in a retrieve_api_key request.
-
#url ⇒ Object
readonly
The url to redirect a user to for access confirmation.
Attributes inherited from Success
#remaining, #reset_date, #status
Instance Method Summary collapse
-
#initialize(document) ⇒ Token
constructor
:nodoc:.
Constructor Details
#initialize(document) ⇒ Token
:nodoc:
43 44 45 46 47 48 49 |
# File 'lib/prowler/response.rb', line 43 def initialize(document) #:nodoc: super(document) retrieve = document.elements["prowl/retrieve"] @token = retrieve.attributes["token"] @url = retrieve.attributes["url"] end |
Instance Attribute Details
#token ⇒ Object (readonly)
The token returned by the Prowl API to use in a retrieve_api_key request
38 39 40 |
# File 'lib/prowler/response.rb', line 38 def token @token end |
#url ⇒ Object (readonly)
The url to redirect a user to for access confirmation
41 42 43 |
# File 'lib/prowler/response.rb', line 41 def url @url end |