Class: GoodJob::Configuration::Validator
- Inherits:
-
Object
- Object
- GoodJob::Configuration::Validator
- Includes:
- ActiveModel::Model
- Defined in:
- lib/good_job/configuration/validator.rb
Overview
Validates a GoodJob::Configuration instance so that misconfigurations can be
caught in a test (e.g. expect(GoodJob.configuration).to be_valid)
rather than at runtime.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(configuration) ⇒ Validator
constructor
A new instance of Validator.
Constructor Details
#initialize(configuration) ⇒ Validator
Returns a new instance of Validator.
16 17 18 19 |
# File 'lib/good_job/configuration/validator.rb', line 16 def initialize(configuration) super() @configuration = configuration end |
Instance Attribute Details
#configuration ⇒ Configuration
12 13 14 |
# File 'lib/good_job/configuration/validator.rb', line 12 def configuration @configuration end |