ChuckJHardy/GitWebHookModel

View on GitHub
lib/git_web_hook_model/hook/model.rb

Summary

Maintainability
A
0 mins
Test Coverage
class GitWebHookModel
  module Hook
    class Model
      include Id::Model

      field :ref
      field :after
      field :before
      field :created
      field :deleted
      field :forced
      field :compare

      has_many :commits

      has_one :head_commit, type: Commit
      has_one :pusher, type: Owner
      has_one :repository
    end
  end
end