Class: HexaPDF::Type::Signature::VerificationResult::Message

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

Overview

This structure represents a single status message, containing the type (:info, :warning, :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



55
56
57
# File 'lib/hexapdf/type/signature/verification_result.rb', line 55

def content
  @content
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



55
56
57
# File 'lib/hexapdf/type/signature/verification_result.rb', line 55

def type
  @type
end

Instance Method Details

#<=>(other) ⇒ Object



56
57
58
# File 'lib/hexapdf/type/signature/verification_result.rb', line 56

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