demarches-normaliennes/app/serializers/service_serializer.rb
2019-09-10 11:06:28 +02:00

9 lines
314 B
Ruby

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
end