Class: NotifyHipchat::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/notify_hipchat/client.rb

Instance Method Summary collapse

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(message)
  @api.rooms_message(@room, @sender, message)
end