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.
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/backup/notifier/prowl.rb', line 16 def initialize(model, &block) = lambda do |m, _| "#{m.label} (#{m.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.
14 15 16 |
# File 'lib/backup/notifier/prowl.rb', line 14 def api_key @api_key end |
#application ⇒ Object
Application name Tell something like your server name. Example: “Server1 Backup”
9 10 11 |
# File 'lib/backup/notifier/prowl.rb', line 9 def application @application end |