Sha256: 74bf2ce9ead63591b15cb4a17d12efc5d119392c3c75b4ce936fb4bc8011f8b7
Contents?: true
Size: 887 Bytes
Versions: 3
Compression:
Stored size: 887 Bytes
Contents
module OpenDNS class DNSDB module Response module Common end class Raw < Hashie::Mash include Common def initialize(source_hash = nil, default = nil, &blk) if source_hash if source_hash[:first_seen] source_hash[:first_seen] = Date.parse(source_hash[:first_seen]) end if source_hash[:last_seen] source_hash[:last_seen] = Date.parse(source_hash[:last_seen]) end end super(source_hash, default, &blk) end end class HashByName < Hash include Common end class HashByIP < Hash include Common end class Distinct < Array include Common end class TimeSeries < Array include Common end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opendns-dnsdb-0.3.0 | lib/opendns-dnsdb/dnsdb/response.rb |
opendns-dnsdb-0.2.0 | lib/opendns-dnsdb/dnsdb/response.rb |
opendns-dnsdb-0.1.0 | lib/opendns-dnsdb/dnsdb/response.rb |