Class: Prowler::ApiKey

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) ⇒ ApiKey

:nodoc:



56
57
58
59
60
61
# File 'lib/prowler/response.rb', line 56

def initialize(document) #:nodoc:
  super(document)

  retrieve = document.elements["prowl/retrieve"]
  @api_key = retrieve.attributes["apikey"]
end

Instance Attribute Details

#api_keyObject (readonly)

The API key returned by the Prowl API



54
55
56
# File 'lib/prowler/response.rb', line 54

def api_key
  @api_key
end