Class: Vaulty::VaultTree::Value
- Inherits:
-
Object
- Object
- Vaulty::VaultTree::Value
- Defined in:
- lib/vaulty/vault_tree.rb
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:) ⇒ Value
constructor
A new instance of Value.
Constructor Details
#initialize(key:, value:) ⇒ Value
Returns a new instance of Value.
18 19 20 21 |
# File 'lib/vaulty/vault_tree.rb', line 18 def initialize(key:, value:) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
17 18 19 |
# File 'lib/vaulty/vault_tree.rb', line 17 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
17 18 19 |
# File 'lib/vaulty/vault_tree.rb', line 17 def value @value end |