=remote_table
Remotely open and parse Excel XLS, ODS, CSV and fixed-width tables.
==Real-life usage
Used by data_miner (http://github.com/seamusabshere/data_miner)
==Example
Taken from #{GEMDIR}/test/remote_table_test.rb:
>> t = RemoteTable.new(:url => 'http://www.fueleconomy.gov/FEG/epadata/98guide6.zip', :filename => '98guide6.csv')
=> #, @file=#, @package=#, @request=#>
>> t.rows.first
=> {"cyl"=>"6", "eng dscr"=>"DOHC VTEC", "trans dscr"=>"2MODE CLKUP", "trans"=>"Auto(L4)", "cmb"=>"20", "2pv"=>nil, "carline name"=>"NSX", "displ"=>"3.0", "ucmb"=>"23.5311", "hpv"=>nil, "4pv"=>nil, "Class"=>"TWO SEATERS", "Manufacturer"=>"ACURA", "fl"=>"P", "2lv"=>nil, "G"=>nil, "hlv"=>nil, "drv"=>"R", "cty"=>"18", "ucty"=>"19.8733", "S"=>nil, "4lv"=>nil, "fcost"=>"1050", "T"=>nil, "hwy"=>"24", "uhwy"=>"30.3612"}
See the test file and also data_miner examples of custom parsers.
==Authors
* Seamus Abshere
* Andy Rossmeissl
== Copyright
Copyright (c) 2010 Brighter Planet. See LICENSE for details.