Class: Prowler::Token

Inherits:
Success show all
Defined in:
lib/prowler/response.rb

Instance Attribute Summary collapse

Attributes inherited from Success

#remaining, #reset_date, #status

Instance Method Summary collapse

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

#tokenObject (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

#urlObject (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