Sha256: 7efd8fc4ed7c9039e8596fa37e2d67ba906c9893ab970d59a91521e48c35dfb3
Contents?: true
Size: 508 Bytes
Versions: 1
Compression:
Stored size: 508 Bytes
Contents
require 'tester/definition/response' class Endpoint attr_accessor :methods attr_accessor :name attr_accessor :bad_request_response attr_accessor :not_allowed_response attr_accessor :not_found_response def initialize name self.name = name self.methods = [] 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
api-tester-0.0.1 | lib/tester/definition/endpoint.rb |