Class: Gitlab::Dangerfiles::Change
- Inherits:
-
Struct
- Object
- Struct
- Gitlab::Dangerfiles::Change
- Defined in:
- lib/gitlab/dangerfiles/changes.rb
Instance Attribute Summary collapse
-
#category ⇒ Symbol
The category of the change.
-
#change_type ⇒ Symbol
The type of change (
:added
,:modified
,:deleted
,:renamed_before
,:renamed_after
). -
#file ⇒ String
The file name that’s changed.
Instance Attribute Details
#category ⇒ Symbol
Returns the category of the change. This is defined by consumers of the gem through helper.changes_by_category
or helper.changes
.
14 |
# File 'lib/gitlab/dangerfiles/changes.rb', line 14 Change = Struct.new(:file, :change_type, :category) |
#change_type ⇒ Symbol
Returns the type of change (:added
, :modified
, :deleted
, :renamed_before
, :renamed_after
).
14 |
# File 'lib/gitlab/dangerfiles/changes.rb', line 14 Change = Struct.new(:file, :change_type, :category) |
#file ⇒ String
Returns the file name that’s changed.
14 |
# File 'lib/gitlab/dangerfiles/changes.rb', line 14 Change = Struct.new(:file, :change_type, :category) |