demarches-normaliennes/app/lib/api_entreprise/attestation_fiscale_adapter.rb
Pierre de La Morinerie 150ddab660 zeitwerk: Api -> API
2021-02-09 13:07:30 +01:00

23 lines
482 B
Ruby

class APIEntreprise::AttestationFiscaleAdapter < APIEntreprise::Adapter
def initialize(siret, procedure_id, user_id)
@siret = siret
@procedure_id = procedure_id
@user_id = user_id
end
private
def get_resource
APIEntreprise::API.attestation_fiscale(siren, @procedure_id, @user_id)
end
def process_params
if data_source[:url].present?
{
entreprise_attestation_fiscale_url: data_source[:url]
}
else
{}
end
end
end