wedding-planner/app/serializers/serializable_guest.rb
Manuel Bustillo 4a107d6728
All checks were successful
Run unit tests / copyright_notice (pull_request) Successful in 40s
Run unit tests / rubocop (pull_request) Successful in 1m2s
Run unit tests / unit_tests (pull_request) Successful in 1m39s
Run unit tests / check-licenses (pull_request) Successful in 34s
Run unit tests / build-static-assets (pull_request) Successful in 21m2s
Return guest that has just been created
2025-06-08 17:38:34 +02:00

18 lines
300 B
Ruby

# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
# frozen_string_literal: true
class SerializableGuest < JSONAPI::Serializable::Resource
type 'guest'
attributes :id, :status
attribute :name do
@object.name
end
attribute :status do
@object.status.capitalize
end
end