Class: MissingResponseFieldReport
- Inherits:
-
Object
- Object
- MissingResponseFieldReport
- Defined in:
- lib/tester/reporter/missing_response_field_report.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#expected_field ⇒ Object
Returns the value of attribute expected_field.
-
#url ⇒ Object
Returns the value of attribute url.
-
#verb ⇒ Object
Returns the value of attribute verb.
Instance Method Summary collapse
-
#initialize(url, verb, expected_field, description) ⇒ MissingResponseFieldReport
constructor
A new instance of MissingResponseFieldReport.
- #print ⇒ Object
Constructor Details
#initialize(url, verb, expected_field, description) ⇒ MissingResponseFieldReport
Returns a new instance of MissingResponseFieldReport.
7 8 9 10 11 12 |
# File 'lib/tester/reporter/missing_response_field_report.rb', line 7 def initialize(url, verb, expected_field, description) self.url = url self.verb = verb self.expected_field = expected_field self.description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/tester/reporter/missing_response_field_report.rb', line 5 def description @description end |
#expected_field ⇒ Object
Returns the value of attribute expected_field.
4 5 6 |
# File 'lib/tester/reporter/missing_response_field_report.rb', line 4 def expected_field @expected_field end |
#url ⇒ Object
Returns the value of attribute url.
2 3 4 |
# File 'lib/tester/reporter/missing_response_field_report.rb', line 2 def url @url end |
#verb ⇒ Object
Returns the value of attribute verb.
3 4 5 |
# File 'lib/tester/reporter/missing_response_field_report.rb', line 3 def verb @verb end |
Instance Method Details
#print ⇒ Object
14 15 16 17 18 |
# File 'lib/tester/reporter/missing_response_field_report.rb', line 14 def print puts "#{self.description}:" puts " #{self.verb} #{self.url} is missing response field:" puts " #{self.expected_field}" end |