Sha256: c3cf088c4de639874b64d1b899d60109a927263dd093c9ae7c9ca46f411e402a
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 Bytes
Contents
module Chkex module Source class One < Base def initialize(source) super(source) end def process result = DomainInfo.new(@source) unless result.error.nil? @results[:errors][result.error] = [] unless @results[:errors].key?(result.error) @results[:errors][result.error].push(domain: result.url) end return if result.expires_on.nil? expiry_date = Date.parse(result.expires_on.strftime('%Y-%m-%d')) diff = expiry_date.mjd - @now.mjd @results[:success][diff] = [] unless @results[:success].key?(diff) @results[:success][diff].push(expiry: expiry_date, domain: result.url) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chkex-0.1.1 | lib/chkex/sources/one.rb |
chkex-0.1.0 | lib/chkex/sources/one.rb |