Skip to content

Instantly share code, notes, and snippets.

@jmmastey
Created December 12, 2014 22:11
Show Gist options
  • Save jmmastey/f84abdff7e7e4aedff8a to your computer and use it in GitHub Desktop.
Save jmmastey/f84abdff7e7e4aedff8a to your computer and use it in GitHub Desktop.
def create_customer_leads(posted_data)
Array(posted_data).map do |lead_params|
extract_customer_lead(lead_params)
end
end
def extract_customer_lead(lead_params)
AcquisitionClient::CustomerLead.extract_customer_lead(posted_data)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment