Class: Prowler::ApiKey
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
The API key returned by the Prowl API.
Attributes inherited from Success
#remaining, #reset_date, #status
Instance Method Summary collapse
-
#initialize(document) ⇒ ApiKey
constructor
:nodoc:.
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_key ⇒ Object (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 |