Class: InternetSecurityEvent::TLSStatus
- Inherits:
-
X509CertificateStatus
- Object
- X509Status
- X509CertificateStatus
- InternetSecurityEvent::TLSStatus
- Defined in:
- lib/internet_security_event/tls_status.rb
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
Attributes inherited from X509CertificateStatus
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hostname, certificate) ⇒ TLSStatus
constructor
A new instance of TLSStatus.
Methods inherited from X509CertificateStatus
Methods inherited from X509Status
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
#hostname ⇒ Object (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 |