Commit 89447b82 authored by Chantal's avatar Chantal

change lifetime answer

parent 6faa138d
......@@ -36,7 +36,7 @@ module Wedoops
def lifetime(id)
resultado = self.class.get("/v1/leads/#{id}/lifetime",headers:{'Content-Type' => 'application/json','x-apikey' => "#{@key}"})
resultado = resultado.deep_symbolize_keys
return resultado[:transactions]
return resultado
end
def leads(date)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment