Class: Sekrit::Bundle
Instance Attribute Summary collapse
-
#encrypted ⇒ Object
readonly
Returns the value of attribute encrypted.
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(hash: Hash) ⇒ Bundle
constructor
A new instance of Bundle.
Constructor Details
#initialize(hash: Hash) ⇒ Bundle
Returns a new instance of Bundle.
8 9 10 11 12 |
# File 'lib/sekrit/bundle.rb', line 8 def initialize(hash: Hash) @encrypted = hash['encrypted'] || [] @files = hash['files'] || [] @id = hash['id'] end |
Instance Attribute Details
#encrypted ⇒ Object (readonly)
Returns the value of attribute encrypted.
4 5 6 |
# File 'lib/sekrit/bundle.rb', line 4 def encrypted @encrypted end |
#files ⇒ Object (readonly)
Returns the value of attribute files.
5 6 7 |
# File 'lib/sekrit/bundle.rb', line 5 def files @files end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/sekrit/bundle.rb', line 6 def id @id end |