# File lib/flukso/database.rb, line 105 def storeReading(reading) # TODO: Make this more efficient, recycle insert statements. if reading.class != UTCReading raise "Must give a UTCReading instance." end stmt="INSERT INTO \#{@tablename}\nVALUES ('\#{reading.utc_timestamp}', '\#{reading.value}');\n" @db.execute(stmt) end