class TeamCymru::MalwareResult

Public Class Methods

new(hash, timestamp, percent_detect) click to toggle source
# File lib/teamcymru/malware.rb, line 6
def initialize(hash, timestamp, percent_detect)
        self.hash = hash
        self.timestamp = Time.at(timestamp.to_i)
        self.percent_detect = (percent_detect == "NO_DATA") ? 0 : percent_detect.to_i
end