call api_entreprise adapters with siret

This commit is contained in:
Christophe Robillard 2020-05-14 14:41:54 +02:00
parent f7201dd17b
commit e3ee423197
12 changed files with 34 additions and 26 deletions

View file

@ -25,4 +25,8 @@ class ApiEntreprise::Adapter
def valid_params?(params)
!params.has_value?(UNAVAILABLE)
end
def siren
@siret[0..8]
end
end