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

Commit

Permalink
added variable trend to scan
Browse files Browse the repository at this point in the history
  • Loading branch information
whotwagner authored and fwininger committed Mar 10, 2018
1 parent da7d12d commit 472271e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/openvas/scan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
module Openvas
# Class used to interact with OpenVAS' scans
class Scan < Client
attr_accessor :id, :name, :comment, :status, :target, :user, :created_at, :updated_at
attr_accessor :id, :name, :comment, :status, :target, :user, :created_at, :updated_at, :trend

def initialize(scan)
@id = scan.at_xpath('@id').value
@name = scan.at_xpath('name').text
@comment = scan.at_xpath('comment').text
@user = scan.at_xpath('owner/name').text

@trend = scan.at_xpath('trend').text
@status = scan.at_xpath('status').text
@target = scan.at_xpath('target')&.first_element_child&.text

Expand Down

0 comments on commit 472271e

Please sign in to comment.