Class: UnmatchedRequest
- Inherits:
-
Object
- Object
- UnmatchedRequest
- Defined in:
- lib/report/report_differ.rb
Instance Attribute Summary collapse
-
#report ⇒ Object
Returns the value of attribute report.
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(report, request) ⇒ UnmatchedRequest
constructor
A new instance of UnmatchedRequest.
- #to_s ⇒ Object
Constructor Details
#initialize(report, request) ⇒ UnmatchedRequest
Returns a new instance of UnmatchedRequest.
39 40 41 42 |
# File 'lib/report/report_differ.rb', line 39 def initialize(report, request) @report = report @request = request end |
Instance Attribute Details
#report ⇒ Object
Returns the value of attribute report.
38 39 40 |
# File 'lib/report/report_differ.rb', line 38 def report @report end |
#request ⇒ Object
Returns the value of attribute request.
38 39 40 |
# File 'lib/report/report_differ.rb', line 38 def request @request end |
Instance Method Details
#to_s ⇒ Object
43 44 45 |
# File 'lib/report/report_differ.rb', line 43 def to_s "%s only in report %s" %[@request, @report.name] end |