Sha256: 26982fc07ee890afcd81093e41e65d82abe8c73e040db5fba56d35ed421a036e

Contents?: true

Size: 478 Bytes

Versions: 5

Compression:

Stored size: 478 Bytes

Contents

class MissingResponseFieldReport
  attr_accessor :url
  attr_accessor :verb
  attr_accessor :expected_field
  attr_accessor :description

  def initialize(url, verb, expected_field, description)
    self.url = url
    self.verb = verb
    self.expected_field = expected_field
    self.description = description
  end

  def print
    puts "#{self.description}:"
    puts "   #{self.verb} #{self.url} is missing response field:"
    puts "      #{self.expected_field}"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
api-tester-0.1.0 lib/tester/reporter/missing_response_field_report.rb
api-tester-0.0.5 lib/tester/reporter/missing_response_field_report.rb
api-tester-0.0.4 lib/tester/reporter/missing_response_field_report.rb
api-tester-0.0.3 lib/tester/reporter/missing_response_field_report.rb
api-tester-0.0.1 lib/tester/reporter/missing_response_field_report.rb