Class: GTFS::Meta::FeedSeeder

Inherits:
Object
  • Object
show all
Defined in:
lib/gtfs/meta/workers/feed_seeder.rb

Class Method Summary collapse

Class Method Details

.perform(options = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/gtfs/meta/workers/feed_seeder.rb', line 4

def self.perform(options = {})
  publishers = options[:publishers]
  feeds = options[:feeds]

  GTFS::Meta::Publisher.first_or_create(publishers)
  GTFS::Meta::Feed.first_or_create(feeds)
end