Class: Txgh::Handlers::Github::PingHandler

Inherits:
Object
  • Object
show all
Includes:
ResponseHelpers
Defined in:
lib/txgh/handlers/github/ping_handler.rb

Overview

Handles github’s ping event, which is a test event fired whenever a new webhook is set up.

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ PingHandler

Returns a new instance of PingHandler.



9
10
# File 'lib/txgh/handlers/github/ping_handler.rb', line 9

def initialize(options = {})
end

Instance Method Details

#executeObject



12
13
14
# File 'lib/txgh/handlers/github/ping_handler.rb', line 12

def execute
  respond_with(200, {})
end