demarches-normaliennes/app/lib/api_entreprise/attestation_sociale_adapter.rb
2020-05-20 11:09:54 +02:00

22 lines
440 B
Ruby

class ApiEntreprise::AttestationSocialeAdapter < ApiEntreprise::Adapter
def initialize(siret, procedure_id)
@siret = siret
@procedure_id = procedure_id
end
private
def get_resource
ApiEntreprise::API.attestation_sociale(siren, @procedure_id)
end
def process_params
if data_source[:url].present?
{
entreprise_attestation_sociale_url: data_source[:url]
}
else
{}
end
end
end