Class: Gitlab::VisibilityEvaluationResult
- Inherits:
-
Object
- Object
- Gitlab::VisibilityEvaluationResult
- Defined in:
- lib/gitlab/visibility_level_checker.rb
Instance Attribute Summary collapse
-
#visibility_level ⇒ Object
readonly
Returns the value of attribute visibility_level.
Instance Method Summary collapse
-
#initialize(restricted, visibility_level) ⇒ VisibilityEvaluationResult
constructor
A new instance of VisibilityEvaluationResult.
- #restricted? ⇒ Boolean
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_level ⇒ Object (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
84 85 86 |
# File 'lib/gitlab/visibility_level_checker.rb', line 84 def restricted? @restricted end |