Module: FirestoreSeeder

Includes:
InventoryData
Included in:
FirestoreClient
Defined in:
lib/firestore_seeder.rb

Overview

Module for seeding Firestore collection with sample data.

Constant Summary

Constants included from InventoryData

InventoryData::OLD_PRODUCTS, InventoryData::RECENT_PRODUCTS, InventoryData::RECENT_PRODUCTS_OUT_OF_STOCK

Instance Method Summary collapse

Instance Method Details

#seed ⇒ Object



9
10
11
12
13
14
15
# File 'lib/firestore_seeder.rb', line 9

def seed
  return unless @db_running

  seed_old_products
  seed_recent_products
  seed_out_of_stock_products
end