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