Module: RedisClient::HasConfig

Included in:
Error
Defined in:
lib/redis_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



81
82
83
# File 'lib/redis_client.rb', line 81

def config
  @config
end

Instance Method Details

#_set_config(config) ⇒ Object



83
84
85
# File 'lib/redis_client.rb', line 83

def _set_config(config)
  @config = config
end

#messageObject



87
88
89
90
91
# File 'lib/redis_client.rb', line 87

def message
  return super unless config&.resolved?

  "#{super} (#{config.server_url})"
end