Class: Sekrit::Bundle

Inherits:
Object show all
Defined in:
lib/sekrit/bundle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#encryptedObject (readonly)

Returns the value of attribute encrypted.



4
5
6
# File 'lib/sekrit/bundle.rb', line 4

def encrypted
  @encrypted
end

#filesObject (readonly)

Returns the value of attribute files.



5
6
7
# File 'lib/sekrit/bundle.rb', line 5

def files
  @files
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/sekrit/bundle.rb', line 6

def id
  @id
end