README.rdoc in seamusabshere-csv_bootstrap-0.1.0 vs README.rdoc in seamusabshere-csv_bootstrap-0.1.1
- old
+ new
@@ -11,11 +11,11 @@
You can specify other sheets (starts at 1):
class FuelType
csv_bootstrap :url => 'http://spreadsheets.google.com/pub?key=p70r3FHguhimIdBKyVz3iPA',
- :sheet => 1
+ :sheet => 1
end
The gem will always request the CSV-formatted version of the document in question.
== Spreadsheet structure
@@ -30,16 +30,16 @@
fuel oil 22.51 lbs/gallon
would generate
a = FuelType.find_or_create_by_name('coal')
- a.update_attributes(:name => 'coal', :emission_factor => '5246.89', :units => 'lbs/short ton')
+ a.update_attributes(:emission_factor => '5246.89', :units => 'lbs/short ton')
a = FuelType.find_or_create_by_name('natural gas')
- a.update_attributes(:name => 'coal', :emission_factor => '1.25', :units => 'pounds / therm (nat gas)')
+ a.update_attributes(:emission_factor => '1.25', :units => 'pounds / therm (nat gas)')
a = FuelType.find_or_create_by_name('fuel oil')
- a.update_attributes(:name => 'coal', :emission_factor => '22.51', :units => 'lbs/gallon')
+ a.update_attributes(:emission_factor => '22.51', :units => 'lbs/gallon')
== Copyright
Copyright (c) 2009 Seamus Abshere. See LICENSE for details.