igor-starostenko/report_factory

View on GitHub
app/serializers/serializable_project.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# Formats Projects JSON API
class SerializableProject < JSONAPI::Serializable::Resource
  type 'project'

  attributes :project_name

  attribute :date do
    {
      created_at: @object.created_at,
      updated_at: @object.updated_at
    }
  end
end