Class: TxghServer::Webhooks::Github::DeleteAttributes

Inherits:
TxghServer::Webhooks::Git::DeleteAttributes show all
Defined in:
lib/txgh-server/webhooks/github/delete_attributes.rb

Constant Summary

Constants inherited from TxghServer::Webhooks::Git::DeleteAttributes

TxghServer::Webhooks::Git::DeleteAttributes::ATTRIBUTES

Class Method Summary collapse

Methods inherited from TxghServer::Webhooks::Git::DeleteAttributes

event, from_webhook_payload, #initialize, ref, #to_h

Constructor Details

This class inherits a constructor from TxghServer::Webhooks::Git::DeleteAttributes

Class Method Details

.ref_type(payload) ⇒ Object



10
11
12
# File 'lib/txgh-server/webhooks/github/delete_attributes.rb', line 10

def ref_type(payload)
  payload.fetch('ref_type')
end

.repo_name(payload) ⇒ Object



6
7
8
# File 'lib/txgh-server/webhooks/github/delete_attributes.rb', line 6

def repo_name(payload)
  payload.fetch('repository').fetch('full_name')
end