Sha256: 6a4830e441abb218806f98806150e4e6a8b0d4c0c173640111ccbf27b286fb4b

Contents?: true

Size: 663 Bytes

Versions: 1

Compression:

Stored size: 663 Bytes

Contents

module Lita::Extensions
  module GitHubWebHooksCore
    module Hooks
      class Status < Hook
        include Lita::Extensions::GitHubWebHooksCore::Hooks::RepoHooks
        def sha
          payload["sha"]
        end
      
        def status
          payload["state"]
        end
      
        def context
          payload["context"]
        end
      
        def description
          payload["description"]
        end
      
        def attributes
          {
            sha: sha,
            context: context,
            description: description,
            repo: repo,
            status: status
          }
        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/status.rb