Class: Notification
- Inherits:
-
Object
- Object
- Notification
- Defined in:
- lib/gantree/notification.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Notification
constructor
A new instance of Notification.
- #say(msg) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Notification
Returns a new instance of Notification.
4 5 6 |
# File 'lib/gantree/notification.rb', line 4 def initialize(={}) @slack = Slackr.connect(["team"], ["token"]) end |
Instance Method Details
#say(msg) ⇒ Object
8 9 10 |
# File 'lib/gantree/notification.rb', line 8 def say(msg) @slack.say(msg) end |