Manuel Bustillo
6cead51bb9
All checks were successful
Check usage of free licenses / check-licenses (pull_request) Successful in 1m25s
Add copyright notice / copyright_notice (pull_request) Successful in 3m0s
Run unit tests / unit_tests (pull_request) Successful in 4m54s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 45m24s
20 lines
308 B
Ruby
20 lines
308 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SerializableGuest < JSONAPI::Serializable::Resource
|
|
type 'guest'
|
|
|
|
attributes :id, :group_id, :status
|
|
|
|
attribute :name do
|
|
@object.name
|
|
end
|
|
|
|
attribute :group_name do
|
|
@object.group.name
|
|
end
|
|
|
|
attribute :status do
|
|
@object.status.capitalize
|
|
end
|
|
end
|