Class: Lita::Handlers::GitlabCiHipchat

Inherits:
Object
  • Object
show all
Extended by:
Lita::Handler::HTTPRouter
Defined in:
lib/lita/handlers/gitlab_ci_hipchat.rb

Instance Method Summary collapse

Instance Method Details

#receive(request, response) ⇒ Object



11
12
13
14
15
# File 'lib/lita/handlers/gitlab_ci_hipchat.rb', line 11

def receive(request, response)
  json_data = JSON.parse(request.body.read)
  message   = Lita::GitlabCi::BuildMessage.new(hipchat, json_data)
  message.send_to_hipchat!
end