Class: Lyra::Secret
Instance Attribute Summary collapse
-
#items ⇒ Object
Returns the value of attribute items.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(hash: Hash) ⇒ Secret
constructor
A new instance of Secret.
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 |