mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 05:06:46 +10:00
15 lines
293 B
Ruby
15 lines
293 B
Ruby
module Gitlab
|
|
class GitAccessStatus
|
|
attr_accessor :status, :message
|
|
alias_method :allowed?, :status
|
|
|
|
def initialize(status, message = '')
|
|
@status = status
|
|
@message = message
|
|
end
|
|
|
|
def to_json
|
|
{status: @status, message: @message}.to_json
|
|
end
|
|
end
|
|
end |