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.



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

def config
  @config
end

Instance Method Details

#_set_config(config) ⇒ Object



91
92
93
# File 'lib/redis_client.rb', line 91

def _set_config(config)
  @config = config
end

#messageObject



95
96
97
98
99
# File 'lib/redis_client.rb', line 95

def message
  return super unless config&.resolved?

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