unclesp1d3r/CipherSwarm

View on GitHub
app/views/api/v1/client/cracker_binaries/_cracker_binary.json.jbuilder

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

# SPDX-FileCopyrightText:  2024 UncleSp1d3r
# SPDX-License-Identifier: MPL-2.0

json.extract! cracker_binary, :id, :version, :active
json.download_url rails_blob_url(cracker_binary.archive_file)
json.checksum cracker_binary.archive_file.checksum
json.binary_file_name cracker_binary.archive_file.filename
json.operating_systems cracker_binary.operating_systems.map(&:name)