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, spec) ⇒ Manifest

Returns a new instance of Manifest.

Parameters:



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

def initialize(asset_files, spec)
  @asset_files = asset_files
  @spec = spec
  populate_content
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



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

def content
  to_hash.to_json
end

#filenameObject



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

def filename
  "manifest.json"
end