Class: VtApi::ApiV2::File::AvResult

Inherits:
Object
  • Object
show all
Defined in:
lib/vt_api/api/v2/file.rb

Overview

Representation of particular AV result on file.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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_nameObject (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

#triggeredObject (readonly)

Returns the value of attribute triggered.



18
19
20
# File 'lib/vt_api/api/v2/file.rb', line 18

def triggered
  @triggered
end

#updateObject (readonly)

Returns the value of attribute update.



18
19
20
# File 'lib/vt_api/api/v2/file.rb', line 18

def update
  @update
end

#versionObject (readonly)

Returns the value of attribute version.



18
19
20
# File 'lib/vt_api/api/v2/file.rb', line 18

def version
  @version
end