Class: HotGlueHelper::KVObject
- Inherits:
-
Object
- Object
- HotGlueHelper::KVObject
- Defined in:
- app/helpers/hot_glue_helper.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:) ⇒ KVObject
constructor
A new instance of KVObject.
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
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'app/helpers/hot_glue_helper.rb', line 3 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'app/helpers/hot_glue_helper.rb', line 3 def value @value end |