scinote-web/app/serializers/api/v1/result_serializer.rb

13 lines
331 B
Ruby

# frozen_string_literal: true
module Api
module V1
class ResultSerializer < ActiveModel::Serializer
type :results
attributes :id, :name, :my_module_id, :user_id, :archived, :result_text,
:result_table, :result_asset
belongs_to :my_module, serializer: MyModuleSerializer
end
end
end