Class: Checker
- Inherits:
-
Object
- Object
- Checker
- Defined in:
- lib/checker.rb
Direct Known Subclasses
ResponseBodyChecker, ResponseCodeChecker, ResponseHeaderChecker, ResponseJsonSyntaxChecker, ResponseTimeChecker
Constant Summary collapse
- @@children =
[]
Class Method Summary collapse
-
.available_plugins ⇒ Object
returns a list of symbolized plugin names.
Instance Method Summary collapse
-
#check ⇒ Object
executes the checking routine and returns a result object to be overwritten in child classes.
-
#initialize(testcase, response, excludes = nil) ⇒ Checker
constructor
A new instance of Checker.
Constructor Details
#initialize(testcase, response, excludes = nil) ⇒ Checker
Returns a new instance of Checker.
6 7 8 9 10 |
# File 'lib/checker.rb', line 6 def initialize(testcase, response, excludes=nil) @testcase = testcase @response = response @excludes = excludes end |
Class Method Details
.available_plugins ⇒ Object
returns a list of symbolized plugin names
19 20 21 |
# File 'lib/checker.rb', line 19 def self.available_plugins return @@children.map{ |child| child.to_s } end |