Class: Subsurface::ExtraData

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

Overview

Stores extra data in key value pairs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, value) ⇒ ExtraData

Returns a new instance of ExtraData.

Parameters:

  • key (String)
  • value (String)


9
10
11
12
# File 'lib/subsurface/extra_data.rb', line 9

def initialize(key, value)
  @key = key
  @value = value
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



6
7
8
# File 'lib/subsurface/extra_data.rb', line 6

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/subsurface/extra_data.rb', line 6

def value
  @value
end