Method: Inspec::Lockfile#initialize

Defined in:
lib/inspec/dependencies/lockfile.rb

#initialize(lockfile_content_hash) ⇒ Lockfile

Returns a new instance of Lockfile.



48
49
50
51
52
# File 'lib/inspec/dependencies/lockfile.rb', line 48

def initialize(lockfile_content_hash)
  version = lockfile_content_hash['lockfile_version']
  @version = version.to_i
  parse_content_hash(lockfile_content_hash)
end