Class: Vaulty::VaultTree::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/vaulty/vault_tree.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



17
18
19
# File 'lib/vaulty/vault_tree.rb', line 17

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



17
18
19
# File 'lib/vaulty/vault_tree.rb', line 17

def value
  @value
end