Class: InternetSecurityEvent::TLSStatus

Inherits:
X509CertificateStatus show all
Defined in:
lib/internet_security_event/tls_status.rb

Instance Attribute Summary collapse

Attributes inherited from X509CertificateStatus

#certificate

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from X509CertificateStatus

#to_e

Methods inherited from X509Status

#renewal_duration, #to_e

Constructor Details

#initialize(hostname, certificate) ⇒ TLSStatus

Returns a new instance of TLSStatus.



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

def initialize(hostname, certificate)
  @hostname = hostname
  super(certificate)
end

Instance Attribute Details

#hostnameObject (readonly)

Returns the value of attribute hostname.



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

def hostname
  @hostname
end

Class Method Details

.build(hostname, certificate) ⇒ Object



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

def self.build(hostname, certificate)
  obj = new(hostname, certificate)
  obj.to_e
end