Class: Backup::Notifier::FlowDock
- Defined in:
- lib/backup/notifier/flowdock.rb
Instance Attribute Summary collapse
-
#from_email ⇒ Object
Which email the notification should appear from.
-
#from_name ⇒ Object
Who the notification should appear from.
-
#link ⇒ Object
link for message.
-
#source ⇒ Object
source for message.
-
#subject ⇒ Object
Subject for message.
-
#tags ⇒ Object
tag message in inbox.
-
#token ⇒ Object
The Flowdock API token.
Attributes inherited from Base
#max_retries, #message, #model, #on_failure, #on_success, #on_warning, #retry_waitsec
Instance Method Summary collapse
-
#initialize(model, &block) ⇒ FlowDock
constructor
A new instance of FlowDock.
Methods inherited from Base
Methods included from Config::Helpers
Constructor Details
#initialize(model, &block) ⇒ FlowDock
Returns a new instance of FlowDock.
35 36 37 38 39 40 41 42 |
# File 'lib/backup/notifier/flowdock.rb', line 35 def initialize(model, &block) super instance_eval(&block) if block_given? @subject ||= default_subject @source ||= default_source @tags ||= [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Backup::Config::Helpers
Instance Attribute Details
#from_email ⇒ Object
Which email the notification should appear from
17 18 19 |
# File 'lib/backup/notifier/flowdock.rb', line 17 def from_email @from_email end |
#from_name ⇒ Object
Who the notification should appear from
14 15 16 |
# File 'lib/backup/notifier/flowdock.rb', line 14 def from_name @from_name end |
#link ⇒ Object
link for message
33 34 35 |
# File 'lib/backup/notifier/flowdock.rb', line 33 def link @link end |
#source ⇒ Object
source for message
21 22 23 |
# File 'lib/backup/notifier/flowdock.rb', line 21 def source @source end |
#subject ⇒ Object
Subject for message
25 26 27 |
# File 'lib/backup/notifier/flowdock.rb', line 25 def subject @subject end |
#tags ⇒ Object
tag message in inbox
29 30 31 |
# File 'lib/backup/notifier/flowdock.rb', line 29 def @tags end |
#token ⇒ Object
The Flowdock API token
10 11 12 |
# File 'lib/backup/notifier/flowdock.rb', line 10 def token @token end |