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

24 lines
482 B
Ruby
Raw Normal View History

2020-08-05 18:40:47 +02:00
class APIEntreprise::AttestationFiscaleAdapter < APIEntreprise::Adapter
def initialize(siret, procedure_id, user_id)
@siret = siret
2020-04-29 17:34:54 +02:00
@procedure_id = procedure_id
@user_id = user_id
end
private
def get_resource
2020-08-05 18:40:47 +02:00
APIEntreprise::API.attestation_fiscale(siren, @procedure_id, @user_id)
2020-04-29 17:34:54 +02:00
end
def process_params
if data_source[:url].present?
{
entreprise_attestation_fiscale_url: data_source[:url]
}
else
{}
end
end
end