Created
December 12, 2014 22:09
-
-
Save jmmastey/2e9dbad502fc8985f3f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create_customer_leads(posted_data) | |
customer_leads = [] | |
Array(posted_data).each do |lead_params| | |
customer_leads << extract_customer_lead(lead_params) | |
end | |
customer_leads | |
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