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.



99
100
101
# File 'lib/redis_client.rb', line 99

def config
  @config
end

Instance Method Details

#_set_config(config) ⇒ Object



101
102
103
# File 'lib/redis_client.rb', line 101

def _set_config(config)
  @config = config
end

#messageObject



105
106
107
108
109
# File 'lib/redis_client.rb', line 105

def message
  return super unless config&.resolved?

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