Class: Backup::Notifier::Pushover
- Defined in:
- lib/backup/notifier/pushover.rb
Instance Attribute Summary collapse
-
#device ⇒ Object
The user’s device identifier to sent the message directly to, rather than all of the user’s devices.
-
#priority ⇒ Object
The priority of the notification.
-
#title ⇒ Object
The message title.
-
#token ⇒ Object
The API Application Token.
-
#user ⇒ Object
The API User Token.
Attributes inherited from Base
#max_retries, #message, #model, #on_failure, #on_success, #on_warning, #retry_waitsec
Instance Method Summary collapse
-
#initialize(model, &block) ⇒ Pushover
constructor
A new instance of Pushover.
Methods inherited from Base
Methods included from Config::Helpers
Constructor Details
#initialize(model, &block) ⇒ Pushover
Returns a new instance of Pushover.
27 28 29 30 |
# File 'lib/backup/notifier/pushover.rb', line 27 def initialize(model, &block) 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
#device ⇒ Object
The user’s device identifier to sent the message directly to, rather than all of the user’s devices
17 18 19 |
# File 'lib/backup/notifier/pushover.rb', line 17 def device @device end |
#priority ⇒ Object
The priority of the notification
25 26 27 |
# File 'lib/backup/notifier/pushover.rb', line 25 def priority @priority end |
#title ⇒ Object
The message title
21 22 23 |
# File 'lib/backup/notifier/pushover.rb', line 21 def title @title end |
#token ⇒ Object
The API Application Token
12 13 14 |
# File 'lib/backup/notifier/pushover.rb', line 12 def token @token end |
#user ⇒ Object
The API User Token
8 9 10 |
# File 'lib/backup/notifier/pushover.rb', line 8 def user @user end |