Sha256: aad21e3b02e262f5a7cba0c8b9264e6392ff4ccedf3f53ee5d62a5742ccb5549
Contents?: true
Size: 565 Bytes
Versions: 41
Compression:
Stored size: 565 Bytes
Contents
FuelPrice.class_eval do # FIXME TODO phase 2 # location # month/year data_miner do schema Earth.database_options do string 'name' float 'price' string 'price_units' end import 'fuel prices derived from the EIA', :url => 'http://spreadsheets.google.com/pub?key=0AoQJbWqPrREqdHlSdXJoOFB5aEpHenJQbTVJdS1pMVE', :select => lambda { |row| row['fuel_type_name'].present? } do key 'name', :field_name => 'fuel_type_name' store 'price', :units_field_name => 'price_units' end end end
Version data entries
41 entries across 41 versions & 2 rubygems