Class: TxghServer::Webhooks::Git::RequestHandler
- Inherits:
-
Object
- Object
- TxghServer::Webhooks::Git::RequestHandler
- Includes:
- ResponseHelpers
- Defined in:
- lib/txgh-server/webhooks/git/request_handler.rb
Direct Known Subclasses
TxghServer::Webhooks::Github::RequestHandler, TxghServer::Webhooks::Gitlab::RequestHandler
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(request, logger) ⇒ RequestHandler
constructor
A new instance of RequestHandler.
Constructor Details
#initialize(request, logger) ⇒ RequestHandler
Returns a new instance of RequestHandler.
17 18 19 20 |
# File 'lib/txgh-server/webhooks/git/request_handler.rb', line 17 def initialize(request, logger) @request = request @logger = logger end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
15 16 17 |
# File 'lib/txgh-server/webhooks/git/request_handler.rb', line 15 def logger @logger end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
15 16 17 |
# File 'lib/txgh-server/webhooks/git/request_handler.rb', line 15 def request @request end |
Class Method Details
.handle_request(request, logger) ⇒ Object
10 11 12 |
# File 'lib/txgh-server/webhooks/git/request_handler.rb', line 10 def handle_request(request, logger) new(request, logger).handle_request end |