Class: TxghServer::Webhooks::Git::DeleteHandler
- Inherits:
-
Object
- Object
- TxghServer::Webhooks::Git::DeleteHandler
- Includes:
- ResponseHelpers
- Defined in:
- lib/txgh-server/webhooks/git/delete_handler.rb
Direct Known Subclasses
TxghServer::Webhooks::Github::DeleteHandler, TxghServer::Webhooks::Gitlab::DeleteHandler
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(project, repo, logger, attributes) ⇒ DeleteHandler
constructor
A new instance of DeleteHandler.
Constructor Details
#initialize(project, repo, logger, attributes) ⇒ DeleteHandler
Returns a new instance of DeleteHandler.
9 10 11 12 13 14 |
# File 'lib/txgh-server/webhooks/git/delete_handler.rb', line 9 def initialize(project, repo, logger, attributes) @project = project @repo = repo @logger = logger @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
7 8 9 |
# File 'lib/txgh-server/webhooks/git/delete_handler.rb', line 7 def attributes @attributes end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
7 8 9 |
# File 'lib/txgh-server/webhooks/git/delete_handler.rb', line 7 def logger @logger end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
7 8 9 |
# File 'lib/txgh-server/webhooks/git/delete_handler.rb', line 7 def project @project end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
7 8 9 |
# File 'lib/txgh-server/webhooks/git/delete_handler.rb', line 7 def repo @repo end |
Instance Method Details
#execute ⇒ Object
16 17 18 19 |
# File 'lib/txgh-server/webhooks/git/delete_handler.rb', line 16 def execute perform_delete if should_handle_request? respond_with(200, true) end |