debian-mirror-gitlab/lib/gitlab/git_access_status.rb

16 lines
296 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
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