demarches-normaliennes/app/serializers/entreprise_serializer.rb

19 lines
417 B
Ruby
Raw Normal View History

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
def date_creation
object.date_creation ? object.date_creation.to_datetime : nil
end
2017-04-04 15:27:04 +02:00
end