class Modification
Represents a modification to a file.
Definitions
def full_name
The full name of the author who made the modification.
Signature
-
returns
String The author's display name.
Implementation
def full_name
author[:name]
end
def key
The stable key used to group modifications by commit or contribution.
Signature
-
returns
String The modification key.
Implementation
def key
self.id || "#{self.author[:email]}:#{self.time.iso8601}"
end
def to_h
Convert the modification to a serializable hash.
Signature
-
returns
Hash The modification data.
Implementation
def to_h
{
id: id,
time: time,
path: path,
author: author,
}
end