Class: HotGlueHelper::KVObject

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/hot_glue_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ KVObject

Returns a new instance of KVObject.



4
5
6
7
# File 'app/helpers/hot_glue_helper.rb', line 4

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

Instance Attribute Details

#keyObject

Returns the value of attribute key.



3
4
5
# File 'app/helpers/hot_glue_helper.rb', line 3

def key
  @key
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'app/helpers/hot_glue_helper.rb', line 3

def value
  @value
end