Sha256: 69b853ec7e10d35e16605dd425559cfc92b43d695408ea9ba47306b978b0639d
Contents?: true
Size: 327 Bytes
Versions: 3
Compression:
Stored size: 327 Bytes
Contents
class Clamrb class Result attr_accessor :status, :identifier def initialize(status, identifier = nil) @status, @identifier = status, identifier end def safe? status != :infected end def virus? status == :infected end def error? status == :unknown end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
clamrb-0.0.4 | lib/clamrb/result.rb |
clamrb-0.0.3 | lib/clamrb/result.rb |
clamrb-0.0.2 | lib/clamrb/result.rb |