Class: IrcMachine::Controller::GithubNotificationsController

Inherits:
HttpController
  • Object
show all
Defined in:
lib/irc_machine/controller/github_notifications_controller.rb

Instance Attribute Summary

Attributes inherited from HttpController

#match, #request, #response, #session

Instance Method Summary collapse

Methods inherited from HttpController

#content_type, dispatch, #initialize, #not_found, #ok

Constructor Details

This class inherits a constructor from IrcMachine::HttpController

Instance Method Details

#notifyObject



5
6
7
8
# File 'lib/irc_machine/controller/github_notifications_controller.rb', line 5

def notify
  session.msg "##{match[1]}",
    Plugin::GithubNotification.new(request.body.read).message
end