Class: TxghServer::Webhooks::Git::RequestHandler

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#loggerObject (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

#requestObject (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