Class: TyrantNode
- Inherits:
-
TyrantClient
- Object
- TyrantClient
- TyrantNode
- Defined in:
- lib/tyrant_client.rb
Overview
TyrantNode
Extends TyrantClient with proper to_s functionality
Instance Method Summary collapse
-
#initialize(name, nodes) ⇒ TyrantNode
constructor
Creates a TyrantNode given a name and a list of servers.
- #to_s ⇒ Object
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_s ⇒ Object
114 115 116 |
# File 'lib/tyrant_client.rb', line 114 def to_s @name end |