Class: NotifyHipchat::Client
- Inherits:
-
Object
- Object
- NotifyHipchat::Client
- Defined in:
- lib/notify_hipchat/client.rb
Instance Method Summary collapse
-
#initialize(token, room, sender) ⇒ Client
constructor
A new instance of Client.
- #send(message) ⇒ Object
Constructor Details
#initialize(token, room, sender) ⇒ Client
Returns a new instance of Client.
5 6 7 8 9 10 11 |
# File 'lib/notify_hipchat/client.rb', line 5 def initialize(token, room, sender) @token = token @room = room @sender = sender @api = HipChat::API.new(@token) end |
Instance Method Details
#send(message) ⇒ Object
13 14 15 |
# File 'lib/notify_hipchat/client.rb', line 13 def send() @api.(@room, @sender, ) end |