Class: HexaPDF::DigitalSignature::VerificationResult::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/hexapdf/digital_signature/verification_result.rb

Overview

This structure represents a single status message, containing the type (:info, :warning, or :error) and the content of the message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



51
52
53
# File 'lib/hexapdf/digital_signature/verification_result.rb', line 51

def content
  @content
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



51
52
53
# File 'lib/hexapdf/digital_signature/verification_result.rb', line 51

def type
  @type
end

Instance Method Details

#<=>(other) ⇒ Object



52
53
54
# File 'lib/hexapdf/digital_signature/verification_result.rb', line 52

def <=>(other)
  MESSAGE_SORT_MAP[type][other.type]
end