summaryrefslogtreecommitdiff
path: root/lib/gitlab/git_access_status.rb
blob: 09bb01be694ff69a2934e5b2d236f07b5f475721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Gitlab
  class GitAccessStatus
    attr_accessor :status, :message
    alias_method :allowed?, :status

    def initialize(status, message = '')
      @status = status
      @message = message
    end

    def to_json(opts = nil)
      { status: @status, message: @message }.to_json(opts)
    end
  end
end