Class: Dradis::Plugins::Import::Result
- Inherits:
-
Object
- Object
- Dradis::Plugins::Import::Result
- Defined in:
- lib/dradis/plugins/import/result.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Result
constructor
A new instance of Result.
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
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/dradis/plugins/import/result.rb', line 3 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/dradis/plugins/import/result.rb', line 3 def id @id end |
#tags ⇒ Object
Returns the value of attribute tags.
3 4 5 |
# File 'lib/dradis/plugins/import/result.rb', line 3 def @tags end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/dradis/plugins/import/result.rb', line 3 def title @title end |