Sha256: 7523f6a2e78c1dc669c2e234727e4696c5cb73042f6187d8a03fffbad0f08a90

Contents?: true

Size: 364 Bytes

Versions: 8

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

require "active_model_serializers"

module Mihari
  module Serializers
    class AlertSerializer < ActiveModel::Serializer
      attributes :id, :title, :description, :source, :created_at

      has_many :artifacts, serializer: ArtifactSerializer
      has_many :tags, through: :taggings, serializer: TagSerializer
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mihari-3.9.0 lib/mihari/serializers/alert.rb
mihari-3.8.1 lib/mihari/serializers/alert.rb
mihari-3.8.0 lib/mihari/serializers/alert.rb
mihari-3.7.2 lib/mihari/serializers/alert.rb
mihari-3.7.1 lib/mihari/serializers/alert.rb
mihari-3.7.0 lib/mihari/serializers/alert.rb
mihari-3.6.1 lib/mihari/serializers/alert.rb
mihari-3.6.0 lib/mihari/serializers/alert.rb