Class: TxghServer::Webhooks::Git::PingHandler
- Inherits:
-
Object
- Object
- TxghServer::Webhooks::Git::PingHandler
- 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.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(logger) ⇒ PingHandler
constructor
A new instance of PingHandler.
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
#logger ⇒ Object (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
#execute ⇒ Object
15 16 17 |
# File 'lib/txgh-server/webhooks/git/ping_handler.rb', line 15 def execute respond_with(200, {}) end |