2016-11-15 07:23:17 -05:00
|
|
|
class AnalyticsCommitEntity < CommitEntity
|
|
|
|
include EntityDateHelper
|
|
|
|
|
|
|
|
expose :short_id, as: :short_sha
|
|
|
|
|
|
|
|
expose :total_time do |commit|
|
2016-11-16 09:55:20 -05:00
|
|
|
distance_of_time_as_hash(request.total_time.to_f)
|
2016-11-15 07:23:17 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
unexpose :author_name
|
|
|
|
unexpose :author_email
|
|
|
|
unexpose :message
|
|
|
|
end
|