Class: Germinator::SeedConfig
- Inherits:
-
Object
- Object
- Germinator::SeedConfig
- Defined in:
- lib/germinator/seed_config.rb
Instance Attribute Summary collapse
-
#environments ⇒ Object
Returns the value of attribute environments.
-
#stop_on_error ⇒ Object
Returns the value of attribute stop_on_error.
-
#stop_on_invalid_model ⇒ Object
Returns the value of attribute stop_on_invalid_model.
-
#valid_models ⇒ Object
Returns the value of attribute valid_models.
Instance Method Summary collapse
-
#initialize ⇒ SeedConfig
constructor
A new instance of SeedConfig.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ SeedConfig
Returns a new instance of SeedConfig.
6 7 8 9 10 11 |
# File 'lib/germinator/seed_config.rb', line 6 def initialize @stop_on_error = false @stop_on_invalid_model = false @environments = true @valid_models = true end |
Instance Attribute Details
#environments ⇒ Object
Returns the value of attribute environments.
4 5 6 |
# File 'lib/germinator/seed_config.rb', line 4 def environments @environments end |
#stop_on_error ⇒ Object
Returns the value of attribute stop_on_error.
4 5 6 |
# File 'lib/germinator/seed_config.rb', line 4 def stop_on_error @stop_on_error end |
#stop_on_invalid_model ⇒ Object
Returns the value of attribute stop_on_invalid_model.
4 5 6 |
# File 'lib/germinator/seed_config.rb', line 4 def stop_on_invalid_model @stop_on_invalid_model end |
#valid_models ⇒ Object
Returns the value of attribute valid_models.
4 5 6 |
# File 'lib/germinator/seed_config.rb', line 4 def valid_models @valid_models end |
Instance Method Details
#to_hash ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/germinator/seed_config.rb', line 13 def to_hash { stop_on_error: @stop_on_error, stop_on_invalid_model: @stop_on_invalid_model, environments: @environments, valid_models: @valid_models } end |