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.
243 244 245 246 247 248 249 250 251 252 |
# File 'lib/moped/node.rb', line 243 def initialize(address, = {}) @address = address = @timeout = [:timeout] || 5 @down_at = nil @refreshed_at = nil @primary = nil @secondary = nil resolve_address end |