Class: UnmatchedRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/report/report_differ.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#reportObject

Returns the value of attribute report.



38
39
40
# File 'lib/report/report_differ.rb', line 38

def report
  @report
end

#requestObject

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_sObject



43
44
45
# File 'lib/report/report_differ.rb', line 43

def to_s
  "%s only in report %s" %[@request, @report.name]
end