demarches-normaliennes/app/lib/api_entreprise/attestation_sociale_adapter.rb

23 lines
425 B
Ruby
Raw Normal View History

2020-08-05 18:40:47 +02:00
class APIEntreprise::AttestationSocialeAdapter < APIEntreprise::Adapter
def initialize(siret, procedure_id)
@siret = siret
2020-04-27 18:09:00 +02:00
@procedure_id = procedure_id
end
private
def get_resource
api(@procedure_id).attestation_sociale(siren)
2020-04-27 18:09:00 +02:00
end
def process_params
if data_source[:url].present?
{
entreprise_attestation_sociale_url: data_source[:url]
}
else
{}
end
end
end