Skip to content

Instantly share code, notes, and snippets.

@muness
Created June 28, 2014 07:19
Show Gist options
  • Save muness/f771e4eee45b6b801e06 to your computer and use it in GitHub Desktop.
Save muness/f771e4eee45b6b801e06 to your computer and use it in GitHub Desktop.
xml_out.Trips do
for page in (1..pages)
past_trips = t.list.trip({'past' => 'true', 'include_objects' => 'false', 'traveler' => 'true', "page_size" => "30", "page_num" => page})
node = Nokogiri::XML(past_trips.to_xml.to_s)
xml_out << node.xpath("//Trip").to_xml
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment