Class: Gem::Guardian::VerificationResult

Inherits:
Data
  • Object
show all
Defined in:
lib/gem/guardian/verifier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actual_sha256Object (readonly)

Returns the value of attribute actual_sha256

Returns:

  • (Object)

    the current value of actual_sha256



5
6
7
# File 'lib/gem/guardian/verifier.rb', line 5

def actual_sha256
  @actual_sha256
end

#artifact_pathObject (readonly)

Returns the value of attribute artifact_path

Returns:

  • (Object)

    the current value of artifact_path



5
6
7
# File 'lib/gem/guardian/verifier.rb', line 5

def artifact_path
  @artifact_path
end

#dependencyObject (readonly)

Returns the value of attribute dependency

Returns:

  • (Object)

    the current value of dependency



5
6
7
# File 'lib/gem/guardian/verifier.rb', line 5

def dependency
  @dependency
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



5
6
7
# File 'lib/gem/guardian/verifier.rb', line 5

def error
  @error
end

#expected_sha256Object (readonly)

Returns the value of attribute expected_sha256

Returns:

  • (Object)

    the current value of expected_sha256



5
6
7
# File 'lib/gem/guardian/verifier.rb', line 5

def expected_sha256
  @expected_sha256
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



5
6
7
# File 'lib/gem/guardian/verifier.rb', line 5

def status
  @status
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/gem/guardian/verifier.rb', line 6

def ok?
  status == :ok
end