Sha256: 63047a09fb09224d9831e31941e1ae58f40a24f7f7b957f4882f1b590d58f6c9

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 Bytes

Contents

module Lita::Extensions
  module GitHubWebHooksCore
    module Hooks
      class Delete < Hook
        include Lita::Extensions::GitHubWebHooksCore::Hooks::RepoHooks
        def deletor
          payload["sender"]["login"]          
        end
        def deletion
          payload["ref_type"]
        end
        def deletion_name
          payload["ref"]
        end
        def attributes
          {
            deletor: deletor,
            deletion: deletion,
            deletion_name: deletion_name,
            repository: repository,
            repo: repo
          }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lita-github-web-hooks-core-1.0.0 lib/lita/extensions/github_web_hooks_core/hooks/delete.rb