Class: Gitlab::Ci::Lint::Result
- Inherits:
-
Object
- Object
- Gitlab::Ci::Lint::Result
- Defined in:
- lib/gitlab/ci/lint.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#jobs ⇒ Object
readonly
Returns the value of attribute jobs.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(jobs:, errors:, warnings:) ⇒ Result
constructor
A new instance of Result.
- #valid? ⇒ Boolean
Constructor Details
#initialize(jobs:, errors:, warnings:) ⇒ Result
Returns a new instance of Result.
9 10 11 12 13 |
# File 'lib/gitlab/ci/lint.rb', line 9 def initialize(jobs:, errors:, warnings:) @jobs = jobs @errors = errors @warnings = warnings end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors
7 8 9 |
# File 'lib/gitlab/ci/lint.rb', line 7 def errors @errors end |
#jobs ⇒ Object (readonly)
Returns the value of attribute jobs
7 8 9 |
# File 'lib/gitlab/ci/lint.rb', line 7 def jobs @jobs end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings
7 8 9 |
# File 'lib/gitlab/ci/lint.rb', line 7 def warnings @warnings end |
Instance Method Details
#valid? ⇒ Boolean
15 16 17 |
# File 'lib/gitlab/ci/lint.rb', line 15 def valid? @errors.empty? end |