Class: InternetSecurityEvent::X509CertificateStatus
- Inherits:
-
X509Status
- Object
- X509Status
- InternetSecurityEvent::X509CertificateStatus
- Defined in:
- lib/internet_security_event/x509_certificate_status.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#certificate ⇒ Object
readonly
Returns the value of attribute certificate.
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(certificate) ⇒ X509CertificateStatus
constructor
A new instance of X509CertificateStatus.
- #to_e ⇒ Object
Methods inherited from X509Status
Constructor Details
#initialize(certificate) ⇒ X509CertificateStatus
Returns a new instance of X509CertificateStatus.
9 10 11 12 13 |
# File 'lib/internet_security_event/x509_certificate_status.rb', line 9 def initialize(certificate) @certificate = certificate super() end |
Instance Attribute Details
#certificate ⇒ Object (readonly)
Returns the value of attribute certificate.
7 8 9 |
# File 'lib/internet_security_event/x509_certificate_status.rb', line 7 def certificate @certificate end |
Instance Method Details
#description ⇒ Object
15 16 17 |
# File 'lib/internet_security_event/x509_certificate_status.rb', line 15 def description super('certificate') end |
#to_e ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/internet_security_event/x509_certificate_status.rb', line 19 def to_e super.merge({ subject: certificate.subject.to_s, issuer: certificate.issuer.to_s, serial: certificate.serial.to_i, not_before: certificate.not_before.to_s, not_after: certificate.not_after.to_s, }) end |