gitlab-org--gitlab-foss/lib/gitlab/auth/result.rb

14 lines
240 B
Ruby
Raw Normal View History

module Gitlab
module Auth
2016-09-19 11:50:28 +00:00
class Result < Struct.new(:actor, :project, :type, :authentication_abilities)
def ci?
type == :ci
end
def success?
actor.present? || type == :ci
end
end
end
end