Class: Dradis::Plugins::Import::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/dradis/plugins/import/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Result

Returns a new instance of Result.



5
6
7
8
9
10
# File 'lib/dradis/plugins/import/result.rb', line 5

def initialize(args={})
  @description = args[:description] || "The Import plugin didn't provide a :description for this result."
  @id          = args[:id]          || "The Import plugin didn't provide an :id for this result."
  @tags        = args[:tags]        || []
  @title       = args[:title]       || "The Import plugin didn't provide a :title for this result."
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/dradis/plugins/import/result.rb', line 3

def description
  @description
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/dradis/plugins/import/result.rb', line 3

def id
  @id
end

#tagsObject

Returns the value of attribute tags.



3
4
5
# File 'lib/dradis/plugins/import/result.rb', line 3

def tags
  @tags
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/dradis/plugins/import/result.rb', line 3

def title
  @title
end