Class: KT::KV
- Inherits:
-
Object
- Object
- KT::KV
- Defined in:
- lib/kt/kv.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ KV
constructor
A new instance of KV.
Constructor Details
#initialize(key, value) ⇒ KV
Returns a new instance of KV.
5 6 7 8 |
# File 'lib/kt/kv.rb', line 5 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/kt/kv.rb', line 3 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/kt/kv.rb', line 3 def value @value end |