Sha256: 567b81f32f7792a64aa3a04189a3e8194e037e989f9c2c3d3ad2c59e324a5296
Contents?: true
Size: 582 Bytes
Versions: 9
Compression:
Stored size: 582 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&gid=0&output=csv', :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
9 entries across 9 versions & 1 rubygems