Class: VAAS::VaasVerdict

Inherits:
Object
  • Object
show all
Defined in:
lib/vaas/vaas_verdict.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ VaasVerdict



6
7
8
9
10
11
12
13
# File 'lib/vaas/vaas_verdict.rb', line 6

def initialize(response)
  @sha256 = response['sha256']
  @verdict = response['verdict']
  @guid = response['guid']
  @detection = response.fetch("detection", "")
  @mime_type = response.fetch("mime_type", "")
  @file_type = response.fetch("file_type", "")
end

Instance Attribute Details

#detectionObject (readonly)

Returns the value of attribute detection.



4
5
6
# File 'lib/vaas/vaas_verdict.rb', line 4

def detection
  @detection
end

#file_typeObject (readonly)

Returns the value of attribute file_type.



4
5
6
# File 'lib/vaas/vaas_verdict.rb', line 4

def file_type
  @file_type
end

#guidObject (readonly)

Returns the value of attribute guid.



4
5
6
# File 'lib/vaas/vaas_verdict.rb', line 4

def guid
  @guid
end

#mime_typeObject (readonly)

Returns the value of attribute mime_type.



4
5
6
# File 'lib/vaas/vaas_verdict.rb', line 4

def mime_type
  @mime_type
end

#sha256Object (readonly)

Returns the value of attribute sha256.



4
5
6
# File 'lib/vaas/vaas_verdict.rb', line 4

def sha256
  @sha256
end

#verdictObject (readonly)

Returns the value of attribute verdict.



4
5
6
# File 'lib/vaas/vaas_verdict.rb', line 4

def verdict
  @verdict
end