Sha256: d9f168f93041164fdabb0801bb4516c7ac8ea8b9ff331a2943b85ae0f5322245
Contents?: true
Size: 362 Bytes
Versions: 2
Compression:
Stored size: 362 Bytes
Contents
require 'domain_info/util/dns_records' class DomainInfo::DKIM < DomainInfo::Record def initialize(domain, txt_name) @dkim = extract_dkim(domain, txt_name) end def value @dkim end private def extract_dkim(domain, txt_name) DomainInfo::DNSRecords.new("#{txt_name}.#{domain}").detect{|txt_record| txt_record.start_with?("v=DKIM")} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
domain_info-0.0.2 | lib/domain_info/dkim.rb |
domain_info-0.0.1 | lib/domain_info/dkim.rb |