debian-mirror-gitlab/app/serializers/diff_file_metadata_entity.rb
2021-10-27 15:23:28 +05:30

15 lines
362 B
Ruby

# frozen_string_literal: true
class DiffFileMetadataEntity < Grape::Entity
include DiffFileConflictType
expose :added_lines
expose :removed_lines
expose :new_path
expose :old_path
expose :new_file?, as: :new_file
expose :deleted_file?, as: :deleted_file
expose :submodule?, as: :submodule
expose :file_identifier_hash
expose :file_hash
end