Class: ContinuumDb::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/continuum_db.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val, srv) ⇒ Entry

Returns a new instance of Entry.



68
69
70
71
# File 'lib/continuum_db.rb', line 68

def initialize(val, srv)
  @value = val
  @server = srv
end

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



66
67
68
# File 'lib/continuum_db.rb', line 66

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



65
66
67
# File 'lib/continuum_db.rb', line 65

def value
  @value
end

Instance Method Details

#inspectObject



73
74
75
# File 'lib/continuum_db.rb', line 73

def inspect
  "<#{value}, #{server.host}:#{server.port}>"
end