Class: SeedReaper::Seedifier
- Inherits:
-
Object
- Object
- SeedReaper::Seedifier
- Defined in:
- lib/seed_reaper/seedifier.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Seedifier
constructor
A new instance of Seedifier.
- #seedify ⇒ Object
Constructor Details
#initialize(config) ⇒ Seedifier
Returns a new instance of Seedifier.
9 10 11 12 |
# File 'lib/seed_reaper/seedifier.rb', line 9 def initialize(config) @config = config @serialized = [] end |
Instance Method Details
#seedify ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/seed_reaper/seedifier.rb', line 14 def seedify if base_config_evaluator.table_only seedify_table_only(@config.first[0]) else seedify_collection(base_model, base_config) end end |