Method: Moped::Node#initialize
- Defined in:
- lib/moped/node.rb
#initialize(address, options = {}) ⇒ Node
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Creat the new node.
220 221 222 223 224 225 226 227 228 229 |
# File 'lib/moped/node.rb', line 220 def initialize(address, = {}) @address = address @options = @timeout = [:timeout] || 5 @down_at = nil @refreshed_at = nil @primary = nil @secondary = nil resolve_address end |