Class: TxghServer::Webhooks::Git::PingHandler

Inherits:
Object
  • Object
show all
Includes:
ResponseHelpers
Defined in:
lib/txgh-server/webhooks/git/ping_handler.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logger) ⇒ PingHandler

Returns a new instance of PingHandler.



11
12
13
# File 'lib/txgh-server/webhooks/git/ping_handler.rb', line 11

def initialize(logger)
  @logger = logger
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



9
10
11
# File 'lib/txgh-server/webhooks/git/ping_handler.rb', line 9

def logger
  @logger
end

Instance Method Details

#executeObject



15
16
17
# File 'lib/txgh-server/webhooks/git/ping_handler.rb', line 15

def execute
  respond_with(200, {})
end