Search found 1 match

by jppti81
Fri May 08, 2009 8:04 am
Forum: Developers Corner
Topic: Ruby Code
Replies: 0
Views: 12309

Ruby Code

Here is a Ruby program which downloads raw XML schedule data. It depends on httpclient.rb gem. #!/usr/bin/env ruby # tmsfetch.rb require 'rubygems' require 'httpclient' User = 'username' Pswd = 'password' class Fixnum def hours self * 60 * 60 end def days self * 24 * 60 * 60 end end def log(msg) put...