Class: Backup::Notifier::Prowl
- Defined in:
- lib/backup/notifier/prowl.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
API-Key Create a Prowl account and request an API key on prowlapp.com.
-
#application ⇒ Object
Application name Tell something like your server name.
Attributes inherited from Base
#max_retries, #message, #model, #on_failure, #on_success, #on_warning, #retry_waitsec
Instance Method Summary collapse
-
#initialize(model, &block) ⇒ Prowl
constructor
A new instance of Prowl.
Methods inherited from Base
Methods included from Config::Helpers
Constructor Details
#initialize(model, &block) ⇒ Prowl
Returns a new instance of Prowl.
18 19 20 21 22 23 24 |
# File 'lib/backup/notifier/prowl.rb', line 18 def initialize(model, &block) @message = lambda do |model, data| "#{ model.label } (#{ model.trigger })" end super instance_eval(&block) if block_given? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Backup::Config::Helpers
Instance Attribute Details
#api_key ⇒ Object
API-Key Create a Prowl account and request an API key on prowlapp.com.
16 17 18 |
# File 'lib/backup/notifier/prowl.rb', line 16 def api_key @api_key end |
#application ⇒ Object
Application name Tell something like your server name. Example: “Server1 Backup”
11 12 13 |
# File 'lib/backup/notifier/prowl.rb', line 11 def application @application end |