Class: VtApi::ApiV2::File::AvResult
- Inherits:
-
Object
- Object
- VtApi::ApiV2::File::AvResult
- Defined in:
- lib/vt_api/api/v2/file.rb
Overview
Representation of particular AV result on file.
Instance Attribute Summary collapse
-
#av_name ⇒ Object
readonly
Returns the value of attribute av_name.
-
#threat_name ⇒ Object
readonly
Returns the value of attribute threat_name.
-
#triggered ⇒ Object
readonly
Returns the value of attribute triggered.
-
#update ⇒ Object
readonly
Returns the value of attribute update.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(av_name, scan_obj) ⇒ AvResult
constructor
noinspection RubyResolve.
Constructor Details
#initialize(av_name, scan_obj) ⇒ AvResult
noinspection RubyResolve
21 22 23 24 25 26 27 |
# File 'lib/vt_api/api/v2/file.rb', line 21 def initialize(av_name, scan_obj) @av_name = av_name @triggered = scan_obj.detected @version = scan_obj.version @threat_name = scan_obj.result @update = scan_obj.update end |
Instance Attribute Details
#av_name ⇒ Object (readonly)
Returns the value of attribute av_name.
18 19 20 |
# File 'lib/vt_api/api/v2/file.rb', line 18 def av_name @av_name end |
#threat_name ⇒ Object (readonly)
Returns the value of attribute threat_name.
18 19 20 |
# File 'lib/vt_api/api/v2/file.rb', line 18 def threat_name @threat_name end |
#triggered ⇒ Object (readonly)
Returns the value of attribute triggered.
18 19 20 |
# File 'lib/vt_api/api/v2/file.rb', line 18 def triggered @triggered end |
#update ⇒ Object (readonly)
Returns the value of attribute update.
18 19 20 |
# File 'lib/vt_api/api/v2/file.rb', line 18 def update @update end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
18 19 20 |
# File 'lib/vt_api/api/v2/file.rb', line 18 def version @version end |