Sha256: 2107e0a600ebd5d52ae92c6a0c608060d0832650edccd069275179a8342086fc
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
require 'tester/definition/response' class Endpoint attr_accessor :url attr_accessor :methods attr_accessor :name attr_accessor :test_helper attr_accessor :bad_request_response attr_accessor :not_allowed_response attr_accessor :not_found_response def initialize name, url self.url = url self.name = name self.methods = [] self.test_helper = TestHelper.new self.bad_request_response = Response.new 400 self.not_allowed_response = Response.new 415 self.not_found_response = Response.new 404 end def add_method(new_method) self.methods << new_method self end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
api-tester-0.0.5 | lib/tester/definition/endpoint.rb |
api-tester-0.0.4 | lib/tester/definition/endpoint.rb |