Skip to content
This repository was archived by the owner on Sep 29, 2022. It is now read-only.

Commit 472271e

Browse files
whotwagnerfwininger
authored andcommitted
added variable trend to scan
1 parent da7d12d commit 472271e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/openvas/scan.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
module Openvas
66
# Class used to interact with OpenVAS' scans
77
class Scan < Client
8-
attr_accessor :id, :name, :comment, :status, :target, :user, :created_at, :updated_at
8+
attr_accessor :id, :name, :comment, :status, :target, :user, :created_at, :updated_at, :trend
99

1010
def initialize(scan)
1111
@id = scan.at_xpath('@id').value
1212
@name = scan.at_xpath('name').text
1313
@comment = scan.at_xpath('comment').text
1414
@user = scan.at_xpath('owner/name').text
15-
15+
@trend = scan.at_xpath('trend').text
1616
@status = scan.at_xpath('status').text
1717
@target = scan.at_xpath('target')&.first_element_child&.text
1818

0 commit comments

Comments
 (0)