Class: Pray::RegistryPackageVersion

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(artifact_hash: nil, tree_hash: nil, yanked: false, targets: [], exports: [], signer: nil, signer_fingerprint: nil, published_at: nil, signature: nil, **kwargs) ⇒ RegistryPackageVersion

Returns a new instance of RegistryPackageVersion.



15
16
17
18
19
20
21
22
# File 'lib/pray/registry.rb', line 15

def initialize(
  artifact_hash: nil, tree_hash: nil, yanked: false, targets: [], exports: [],
  signer: nil, signer_fingerprint: nil, published_at: nil, signature: nil, **kwargs
)
  super(**kwargs, artifact_hash: artifact_hash, tree_hash: tree_hash, yanked: yanked,
                  targets: targets, exports: exports, signer: signer,
                  signer_fingerprint: signer_fingerprint, published_at: published_at, signature: signature)
end

Instance Attribute Details

#artifactObject

Returns the value of attribute artifact

Returns:

  • (Object)

    the current value of artifact



11
12
13
# File 'lib/pray/registry.rb', line 11

def artifact
  @artifact
end

#artifact_hashObject

Returns the value of attribute artifact_hash

Returns:

  • (Object)

    the current value of artifact_hash



11
12
13
# File 'lib/pray/registry.rb', line 11

def artifact_hash
  @artifact_hash
end

#exportsObject

Returns the value of attribute exports

Returns:

  • (Object)

    the current value of exports



11
12
13
# File 'lib/pray/registry.rb', line 11

def exports
  @exports
end

#published_atObject

Returns the value of attribute published_at

Returns:

  • (Object)

    the current value of published_at



11
12
13
# File 'lib/pray/registry.rb', line 11

def published_at
  @published_at
end

#signatureObject

Returns the value of attribute signature

Returns:

  • (Object)

    the current value of signature



11
12
13
# File 'lib/pray/registry.rb', line 11

def signature
  @signature
end

#signerObject

Returns the value of attribute signer

Returns:

  • (Object)

    the current value of signer



11
12
13
# File 'lib/pray/registry.rb', line 11

def signer
  @signer
end

#signer_fingerprintObject

Returns the value of attribute signer_fingerprint

Returns:

  • (Object)

    the current value of signer_fingerprint



11
12
13
# File 'lib/pray/registry.rb', line 11

def signer_fingerprint
  @signer_fingerprint
end

#targetsObject

Returns the value of attribute targets

Returns:

  • (Object)

    the current value of targets



11
12
13
# File 'lib/pray/registry.rb', line 11

def targets
  @targets
end

#tree_hashObject

Returns the value of attribute tree_hash

Returns:

  • (Object)

    the current value of tree_hash



11
12
13
# File 'lib/pray/registry.rb', line 11

def tree_hash
  @tree_hash
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



11
12
13
# File 'lib/pray/registry.rb', line 11

def version
  @version
end

#yankedObject

Returns the value of attribute yanked

Returns:

  • (Object)

    the current value of yanked



11
12
13
# File 'lib/pray/registry.rb', line 11

def yanked
  @yanked
end