Class: OpenVASOMP::OMPError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- OpenVASOMP::OMPError
- Defined in:
- lib/openvas-omp.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#req ⇒ Object
Returns the value of attribute req.
Instance Method Summary collapse
-
#initialize(req, reason = '') ⇒ OMPError
constructor
A new instance of OMPError.
- #to_s ⇒ Object
Constructor Details
#initialize(req, reason = '') ⇒ OMPError
Returns a new instance of OMPError.
57 58 59 60 |
# File 'lib/openvas-omp.rb', line 57 def initialize(req, reason = '') self.req = req self.reason = reason end |
Instance Attribute Details
#reason ⇒ Object
Returns the value of attribute reason.
56 57 58 |
# File 'lib/openvas-omp.rb', line 56 def reason @reason end |
#req ⇒ Object
Returns the value of attribute req.
56 57 58 |
# File 'lib/openvas-omp.rb', line 56 def req @req end |
Instance Method Details
#to_s ⇒ Object
61 62 63 |
# File 'lib/openvas-omp.rb', line 61 def to_s "OpenVAS OMP: #{self.reason}" end |