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

23 lines
441 B
Ruby
Raw Normal View History

2020-04-27 18:09:00 +02:00
class ApiEntreprise::AttestationSocialeAdapter < ApiEntreprise::Adapter
def initialize(siren, procedure_id)
@siren = siren
@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