Exception: Chaskiq::ConfigError
- Inherits:
-
StandardError
- Object
- StandardError
- Chaskiq::ConfigError
- Defined in:
- lib/chaskiq/config.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(key) ⇒ ConfigError
constructor
A new instance of ConfigError.
- #message ⇒ Object
Constructor Details
#initialize(key) ⇒ ConfigError
Returns a new instance of ConfigError.
66 67 68 |
# File 'lib/chaskiq/config.rb', line 66 def initialize(key) @key = key end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
65 66 67 |
# File 'lib/chaskiq/config.rb', line 65 def object @object end |
Instance Method Details
#message ⇒ Object
70 71 72 |
# File 'lib/chaskiq/config.rb', line 70 def "\033[31m #{@key} config key not found, add it in Chaskiq::Config.setup initializer \033[0m" end |