Class: Passifier::Manifest

Inherits:
Object
  • Object
show all
Defined in:
lib/passifier/manifest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(asset_files, signing) ⇒ Manifest

Returns a new instance of Manifest.

Parameters:



12
13
14
15
# File 'lib/passifier/manifest.rb', line 12

def initialize(asset_files, signing)
  @asset_files = asset_files
  populate_content(signing)
end

Instance Attribute Details

#hashObject (readonly) Also known as: to_hash

Returns the value of attribute hash.



7
8
9
# File 'lib/passifier/manifest.rb', line 7

def hash
  @hash
end

Instance Method Details

#contentObject



21
22
23
# File 'lib/passifier/manifest.rb', line 21

def content
  to_hash.to_json
end

#filenameObject



17
18
19
# File 'lib/passifier/manifest.rb', line 17

def filename
  "manifest.json"
end