Created
June 28, 2014 07:19
-
-
Save muness/f771e4eee45b6b801e06 to your computer and use it in GitHub Desktop.
This file contains 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
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