Exception: Chaskiq::ConfigError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chaskiq/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#objectObject (readonly)

Returns the value of attribute object.



65
66
67
# File 'lib/chaskiq/config.rb', line 65

def object
  @object
end

Instance Method Details

#messageObject



70
71
72
# File 'lib/chaskiq/config.rb', line 70

def message
  "\033[31m #{@key} config key not found, add it in Chaskiq::Config.setup initializer \033[0m"
end