demarches-normaliennes/app/serializers/service_serializer.rb
2024-08-22 09:26:48 +02:00

12 lines
377 B
Ruby

# frozen_string_literal: true
class ServiceSerializer < ActiveModel::Serializer
attributes :id, :email
attribute :nom, key: :name
attribute :type_organisme, key: :type_organization
attribute :organisme, key: :organization
attribute :telephone, key: :phone
attribute :horaires, key: :schedule
attribute :adresse, key: :address
attribute :siret, key: :siret
end