Class: Backup::Notifier::Prowl

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/notifier/prowl.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#on_failure, #on_success, #on_warning

Instance Method Summary collapse

Methods inherited from Base

#perform!

Methods included from Configuration::Helpers

included

Constructor Details

#initialize(model, &block) ⇒ Prowl

Returns a new instance of Prowl.



21
22
23
24
25
# File 'lib/backup/notifier/prowl.rb', line 21

def initialize(model, &block)
  super(model)

  instance_eval(&block) if block_given?
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Backup::Configuration::Helpers

Instance Attribute Details

#api_keyObject

API-Key Create a Prowl account and request an API key on prowlapp.com.



19
20
21
# File 'lib/backup/notifier/prowl.rb', line 19

def api_key
  @api_key
end

#applicationObject

Application name Tell something like your server name. Example: “Server1 Backup”



14
15
16
# File 'lib/backup/notifier/prowl.rb', line 14

def application
  @application
end