Class: Subsurface::ExtraData
- Inherits:
-
Object
- Object
- Subsurface::ExtraData
- Defined in:
- lib/subsurface/extra_data.rb
Overview
Stores extra data in key value pairs
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ ExtraData
constructor
A new instance of ExtraData.
Constructor Details
#initialize(key, value) ⇒ ExtraData
Returns a new instance of ExtraData.
9 10 11 12 |
# File 'lib/subsurface/extra_data.rb', line 9 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/subsurface/extra_data.rb', line 6 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/subsurface/extra_data.rb', line 6 def value @value end |