Sha256: 168e981a540028b8d7ac3a86d2bb42353b13f51e3522215abf896128ecf094f7

Contents?: true

Size: 491 Bytes

Versions: 2

Compression:

Stored size: 491 Bytes

Contents

module Germinator
  class SeedConfig

    attr_accessor :stop_on_error, :stop_on_invalid_model, :environments, :valid_models

    def initialize
      @stop_on_error = false
      @stop_on_invalid_model = false
      @environments = true
      @valid_models = true
    end

    def to_hash
      {
        stop_on_error: @stop_on_error,
        stop_on_invalid_model: @stop_on_invalid_model,
        environments: @environments,
        valid_models: @valid_models
      }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
germinator-2.1.1 lib/germinator/seed_config.rb
germinator-2.1.0 lib/germinator/seed_config.rb