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.
33 34 35 36 37 38 39 40 |
# File 'lib/backup/notifier/flowdock.rb', line 33 def initialize(model, &block) super instance_eval(&block) if block_given? @subject ||= default_subject @source ||= default_source ||= [] 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
15 16 17 |
# File 'lib/backup/notifier/flowdock.rb', line 15 def from_email @from_email end |
#from_name ⇒ Object
Who the notification should appear from
12 13 14 |
# File 'lib/backup/notifier/flowdock.rb', line 12 def from_name @from_name end |
#link ⇒ Object
link for message
31 32 33 |
# File 'lib/backup/notifier/flowdock.rb', line 31 def link @link end |
#source ⇒ Object
source for message
19 20 21 |
# File 'lib/backup/notifier/flowdock.rb', line 19 def source @source end |
#subject ⇒ Object
Subject for message
23 24 25 |
# File 'lib/backup/notifier/flowdock.rb', line 23 def subject @subject end |
#tags ⇒ Object
tag message in inbox
27 28 29 |
# File 'lib/backup/notifier/flowdock.rb', line 27 def end |
#token ⇒ Object
The Flowdock API token
8 9 10 |
# File 'lib/backup/notifier/flowdock.rb', line 8 def token @token end |