Class: Gitlab::Dangerfiles::Change

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab/dangerfiles/changes.rb

Instance Attribute Summary collapse

Instance Attribute Details

#categorySymbol

Returns the category of the change. This is defined by consumers of the gem through helper.changes_by_category or helper.changes.

Returns:

  • (Symbol)

    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_typeSymbol

Returns the type of change (:added, :modified, :deleted, :renamed_before, :renamed_after).

Returns:

  • (Symbol)

    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)

#fileString

Returns the file name that’s changed.

Returns:

  • (String)

    the file name that’s changed.



14
# File 'lib/gitlab/dangerfiles/changes.rb', line 14

Change = Struct.new(:file, :change_type, :category)