Class: ClamAV::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/clamav/responses.rb

Direct Known Subclasses

ErrorResponse, SuccessResponse, VirusResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#error_strObject (readonly)

Returns the value of attribute error_str.



20
21
22
# File 'lib/clamav/responses.rb', line 20

def error_str
  @error_str
end

#fileObject (readonly)

Returns the value of attribute file.



20
21
22
# File 'lib/clamav/responses.rb', line 20

def file
  @file
end

#virus_nameObject (readonly)

Returns the value of attribute virus_name.



20
21
22
# File 'lib/clamav/responses.rb', line 20

def virus_name
  @virus_name
end

Instance Method Details

#==(other) ⇒ Object

Not sure if this is still required?



23
24
25
# File 'lib/clamav/responses.rb', line 23

def ==(other)
  @file == other.file && self.class == other.class
end