class RubyFeed::Feed

Constants

DATABASES

Public Class Methods

setup() click to toggle source
# File lib/ruby_feed.rb, line 10
def self.setup
  TableMigrator.create_current(DATABASES[:current])
  TableMigrator.create_current(DATABASES[:yesterday])
  TableMigrator.create_current(DATABASES[:two_days_ago])
end
update() click to toggle source
# File lib/ruby_feed.rb, line 16
def self.update
  TableMigrator.drop_and_recreate(DATABASES[:two_days_ago], DATABASES[:yesterday])
  TableMigrator.drop_and_recreate(DATABASES[:yesterday], DATABASES[:current])
  TableMigrator.create_current(DATABASES[:current])
end