Exception: ChaskiqRubyClient::ConfigError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ ConfigError

Returns a new instance of ConfigError.



26
27
28
# File 'lib/chaskiqRubyClient/config.rb', line 26

def initialize(key)
  @key = key
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



25
26
27
# File 'lib/chaskiqRubyClient/config.rb', line 25

def object
  @object
end

Instance Method Details

#messageObject



30
31
32
# File 'lib/chaskiqRubyClient/config.rb', line 30

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