Class: Baykit::BayServer::Util::KeyVal
- Inherits:
-
Object
- Object
- Baykit::BayServer::Util::KeyVal
- Defined in:
- lib/baykit/bayserver/util/key_val.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, val) ⇒ KeyVal
constructor
A new instance of KeyVal.
Constructor Details
#initialize(name, val) ⇒ KeyVal
Returns a new instance of KeyVal.
8 9 10 11 |
# File 'lib/baykit/bayserver/util/key_val.rb', line 8 def initialize(name, val) @name = name @value = val end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/baykit/bayserver/util/key_val.rb', line 5 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/baykit/bayserver/util/key_val.rb', line 6 def value @value end |