Class: Gitlab::VisibilityEvaluationResult

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/visibility_level_checker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(restricted, visibility_level) ⇒ VisibilityEvaluationResult

Returns a new instance of VisibilityEvaluationResult.



79
80
81
82
# File 'lib/gitlab/visibility_level_checker.rb', line 79

def initialize(restricted, visibility_level)
  @restricted = restricted
  @visibility_level = visibility_level
end

Instance Attribute Details

#visibility_levelObject (readonly)

Returns the value of attribute visibility_level.



77
78
79
# File 'lib/gitlab/visibility_level_checker.rb', line 77

def visibility_level
  @visibility_level
end

Instance Method Details

#restricted?Boolean

Returns:

  • (Boolean)


84
85
86
# File 'lib/gitlab/visibility_level_checker.rb', line 84

def restricted?
  @restricted
end