gitlab-org--gitlab-foss/lib/gitlab/git_access_status.rb
2015-02-02 20:36:54 -08:00

15 lines
296 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