Class: Pray::LockedPackage

Inherits:
Struct
  • Object
show all
Defined in:
lib/pray/lockfile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exports: [], dependencies: [], signer_fingerprint: nil, source: nil, **kwargs) ⇒ LockedPackage

Returns a new instance of LockedPackage.



13
14
15
# File 'lib/pray/lockfile.rb', line 13

def initialize(exports: [], dependencies: [], signer_fingerprint: nil, source: nil, **kwargs)
  super(**kwargs, exports: exports, dependencies: dependencies, signer_fingerprint: signer_fingerprint, source: source)
end

Instance Attribute Details

#artifactObject

Returns the value of attribute artifact

Returns:

  • (Object)

    the current value of artifact



9
10
11
# File 'lib/pray/lockfile.rb', line 9

def artifact
  @artifact
end

#artifact_hashObject

Returns the value of attribute artifact_hash

Returns:

  • (Object)

    the current value of artifact_hash



9
10
11
# File 'lib/pray/lockfile.rb', line 9

def artifact_hash
  @artifact_hash
end

#dependenciesObject

Returns the value of attribute dependencies

Returns:

  • (Object)

    the current value of dependencies



9
10
11
# File 'lib/pray/lockfile.rb', line 9

def dependencies
  @dependencies
end

#exportsObject

Returns the value of attribute exports

Returns:

  • (Object)

    the current value of exports



9
10
11
# File 'lib/pray/lockfile.rb', line 9

def exports
  @exports
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



9
10
11
# File 'lib/pray/lockfile.rb', line 9

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



9
10
11
# File 'lib/pray/lockfile.rb', line 9

def path
  @path
end

#signer_fingerprintObject

Returns the value of attribute signer_fingerprint

Returns:

  • (Object)

    the current value of signer_fingerprint



9
10
11
# File 'lib/pray/lockfile.rb', line 9

def signer_fingerprint
  @signer_fingerprint
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



9
10
11
# File 'lib/pray/lockfile.rb', line 9

def source
  @source
end

#tree_hashObject

Returns the value of attribute tree_hash

Returns:

  • (Object)

    the current value of tree_hash



9
10
11
# File 'lib/pray/lockfile.rb', line 9

def tree_hash
  @tree_hash
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



9
10
11
# File 'lib/pray/lockfile.rb', line 9

def version
  @version
end