Class: Notification

Inherits:
Object
  • Object
show all
Defined in:
lib/gantree/notification.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Notification

Returns a new instance of Notification.



4
5
6
# File 'lib/gantree/notification.rb', line 4

def initialize(options={})
  @slack = Slackr.connect(options["team"], options["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