2016-01-25 16:08:10 +01:00
|
|
|
class EntrepriseSerializer < ActiveModel::Serializer
|
|
|
|
attributes :siren,
|
2017-06-12 13:49:51 +02:00
|
|
|
:capital_social,
|
|
|
|
:numero_tva_intracommunautaire,
|
|
|
|
:forme_juridique,
|
|
|
|
:forme_juridique_code,
|
|
|
|
:nom_commercial,
|
|
|
|
:raison_sociale,
|
|
|
|
:siret_siege_social,
|
|
|
|
:code_effectif_entreprise,
|
2020-04-21 15:52:08 +02:00
|
|
|
:effectif_mois,
|
|
|
|
:effectif_annee,
|
|
|
|
:effectif_mensuel,
|
2017-06-12 13:49:51 +02:00
|
|
|
:date_creation,
|
|
|
|
:nom,
|
|
|
|
:prenom
|
2018-04-23 11:57:38 +02:00
|
|
|
|
|
|
|
def date_creation
|
|
|
|
object.date_creation ? object.date_creation.to_datetime : nil
|
|
|
|
end
|
2017-04-04 15:27:04 +02:00
|
|
|
end
|