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,
|
|
|
|
: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
|