Class: InternetSecurityEvent::X509CertificateRevocationListStatus

Inherits:
X509Status
  • Object
show all
Defined in:
lib/internet_security_event/x509_certificate_revocation_list_status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from X509Status

build, #renewal_duration

Constructor Details

#initialize(crl) ⇒ X509CertificateRevocationListStatus

Returns a new instance of X509CertificateRevocationListStatus.



9
10
11
12
13
# File 'lib/internet_security_event/x509_certificate_revocation_list_status.rb', line 9

def initialize(crl)
  @crl = crl

  super()
end

Instance Attribute Details

#crlObject (readonly)

Returns the value of attribute crl.



7
8
9
# File 'lib/internet_security_event/x509_certificate_revocation_list_status.rb', line 7

def crl
  @crl
end

Instance Method Details

#descriptionObject



15
16
17
# File 'lib/internet_security_event/x509_certificate_revocation_list_status.rb', line 15

def description
  super('crl')
end

#to_eObject



19
20
21
22
23
24
25
# File 'lib/internet_security_event/x509_certificate_revocation_list_status.rb', line 19

def to_e
  super.merge({
                issuer:      crl.issuer.to_s,
                last_update: crl.last_update.to_s,
                next_update: crl.next_update.to_s,
              })
end