Class: Danger::Changelog::ChangelogCheckResult
- Inherits:
-
Object
- Object
- Danger::Changelog::ChangelogCheckResult
- Defined in:
- lib/danger/plugins/changelog.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#markdowns ⇒ Object
readonly
Returns the value of attribute markdowns.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Class Method Summary collapse
Instance Method Summary collapse
- #error(error) ⇒ Object
-
#initialize(errors: [], warnings: [], markdowns: [], messages: []) ⇒ ChangelogCheckResult
constructor
A new instance of ChangelogCheckResult.
- #markdown(markdown) ⇒ Object
- #message(message) ⇒ Object
- #warning(warning) ⇒ Object
Constructor Details
#initialize(errors: [], warnings: [], markdowns: [], messages: []) ⇒ ChangelogCheckResult
Returns a new instance of ChangelogCheckResult.
60 61 62 63 64 65 |
# File 'lib/danger/plugins/changelog.rb', line 60 def initialize(errors: [], warnings: [], markdowns: [], messages: []) @errors = errors @warnings = warnings @markdowns = markdowns @messages = end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
58 59 60 |
# File 'lib/danger/plugins/changelog.rb', line 58 def errors @errors end |
#markdowns ⇒ Object (readonly)
Returns the value of attribute markdowns.
58 59 60 |
# File 'lib/danger/plugins/changelog.rb', line 58 def markdowns @markdowns end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
58 59 60 |
# File 'lib/danger/plugins/changelog.rb', line 58 def @messages end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings.
58 59 60 |
# File 'lib/danger/plugins/changelog.rb', line 58 def warnings @warnings end |
Class Method Details
.empty ⇒ Object
69 70 71 |
# File 'lib/danger/plugins/changelog.rb', line 69 def self.empty new end |
.error(error) ⇒ Object
73 74 75 |
# File 'lib/danger/plugins/changelog.rb', line 73 def self.error(error) new(errors: [error]) end |
.warning(warning) ⇒ Object
77 78 79 |
# File 'lib/danger/plugins/changelog.rb', line 77 def self.warning(warning) new(warnings: [warning]) end |
Instance Method Details
#error(error) ⇒ Object
81 82 83 |
# File 'lib/danger/plugins/changelog.rb', line 81 def error(error) errors << error end |
#markdown(markdown) ⇒ Object
89 90 91 |
# File 'lib/danger/plugins/changelog.rb', line 89 def markdown(markdown) markdowns << markdown end |
#message(message) ⇒ Object
93 94 95 |
# File 'lib/danger/plugins/changelog.rb', line 93 def () << end |
#warning(warning) ⇒ Object
85 86 87 |
# File 'lib/danger/plugins/changelog.rb', line 85 def warning(warning) warnings << warning end |