Class: ContinuumDb::Entry
- Inherits:
-
Object
- Object
- ContinuumDb::Entry
- Defined in:
- lib/continuum_db.rb
Instance Attribute Summary collapse
-
#server ⇒ Object
readonly
Returns the value of attribute server.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(val, srv) ⇒ Entry
constructor
A new instance of Entry.
- #inspect ⇒ Object
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
#server ⇒ Object (readonly)
Returns the value of attribute server.
66 67 68 |
# File 'lib/continuum_db.rb', line 66 def server @server end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
65 66 67 |
# File 'lib/continuum_db.rb', line 65 def value @value end |
Instance Method Details
#inspect ⇒ Object
73 74 75 |
# File 'lib/continuum_db.rb', line 73 def inspect "<#{value}, #{server.host}:#{server.port}>" end |