Class: TLSChecker::TLSAChecker

Inherits:
InternetSecurityEvent::TLSAStatus
  • Object
show all
Defined in:
lib/tls_checker/tlsa_checker.rb

Instance Method Summary collapse

Constructor Details

#initialize(record, certificate_checker) ⇒ TLSAChecker

Returns a new instance of TLSAChecker.



5
6
7
8
9
# File 'lib/tls_checker/tlsa_checker.rb', line 5

def initialize(record, certificate_checker)
  super(record, certificate_checker.certificate)

  @certificate_checker = certificate_checker
end

Instance Method Details

#to_eObject



11
12
13
14
15
16
# File 'lib/tls_checker/tlsa_checker.rb', line 11

def to_e
  super.merge(
    service: service,
    ttl:     12.hours,
  )
end