Skip to content

Instantly share code, notes, and snippets.

@dolzenko
Forked from infectious/gist:5047272
Created February 27, 2013 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dolzenko/5047279 to your computer and use it in GitHub Desktop.
Save dolzenko/5047279 to your computer and use it in GitHub Desktop.
extract :DWAPI do
get 'Siphon'
limit 2
resolve do |response|
rows = []
p response
response.each do |input|
p input
name = input[:name]
hour = input[:hour]
timestamp = input[:timestamp]
input[:splits].each do |split|
rows << { name: name, hour: hour, timestamp: timestamp, split: split['part'] }
end
end
rows
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment