Class: TyrantNode

Inherits:
TyrantClient show all
Defined in:
lib/tyrant_client.rb

Overview

TyrantNode

Extends TyrantClient with proper to_s functionality

Instance Method Summary collapse

Methods inherited from TyrantClient

#delete, #get, #get_connection, #get_db, #hash, #set

Constructor Details

#initialize(name, nodes) ⇒ TyrantNode

Creates a TyrantNode given a name and a list of servers. The list of servers should be in the format for the constructor of TyrantClient



109
110
111
112
# File 'lib/tyrant_client.rb', line 109

def initialize(name, nodes)
  @name = name
  super(nodes)
end

Instance Method Details

#to_sObject



114
115
116
# File 'lib/tyrant_client.rb', line 114

def to_s
  @name
end