Class: VAAS::VaasVerdict
- Inherits:
-
Object
- Object
- VAAS::VaasVerdict
- Defined in:
- lib/vaas/vaas_verdict.rb
Instance Attribute Summary collapse
-
#detection ⇒ Object
readonly
Returns the value of attribute detection.
-
#file_type ⇒ Object
readonly
Returns the value of attribute file_type.
-
#guid ⇒ Object
readonly
Returns the value of attribute guid.
-
#mime_type ⇒ Object
readonly
Returns the value of attribute mime_type.
-
#sha256 ⇒ Object
readonly
Returns the value of attribute sha256.
-
#verdict ⇒ Object
readonly
Returns the value of attribute verdict.
Instance Method Summary collapse
-
#initialize(response) ⇒ VaasVerdict
constructor
A new instance of VaasVerdict.
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
#detection ⇒ Object (readonly)
Returns the value of attribute detection.
4 5 6 |
# File 'lib/vaas/vaas_verdict.rb', line 4 def detection @detection end |
#file_type ⇒ Object (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 |
#guid ⇒ Object (readonly)
Returns the value of attribute guid.
4 5 6 |
# File 'lib/vaas/vaas_verdict.rb', line 4 def guid @guid end |
#mime_type ⇒ Object (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 |
#sha256 ⇒ Object (readonly)
Returns the value of attribute sha256.
4 5 6 |
# File 'lib/vaas/vaas_verdict.rb', line 4 def sha256 @sha256 end |
#verdict ⇒ Object (readonly)
Returns the value of attribute verdict.
4 5 6 |
# File 'lib/vaas/vaas_verdict.rb', line 4 def verdict @verdict end |