Class: Lyra::Secret

Inherits:
Object show all
Defined in:
lib/lyra/secret.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash: Hash) ⇒ Secret

Returns a new instance of Secret.



7
8
9
10
11
# File 'lib/lyra/secret.rb', line 7

def initialize(hash: Hash)
  hash = hash.transform_keys(&:to_sym)
  @name = hash[:name]
  @items = hash[:items]
end

Instance Attribute Details

#itemsObject

Returns the value of attribute items.



5
6
7
# File 'lib/lyra/secret.rb', line 5

def items
  @items
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/lyra/secret.rb', line 4

def name
  @name
end