Sha256: d70710b76fd9adfddf50e85c7f443c4911a6e0678a747197aa49dad59097d426
Contents?: true
Size: 1004 Bytes
Versions: 4
Compression:
Stored size: 1004 Bytes
Contents
module ApiTester class SupportedVerbs def SupportedVerbs.add_item(key, value) @hash ||= {} @hash[key] = value end def SupportedVerbs.const_missing(key) @hash[key] end def SupportedVerbs.each @hash.each {|key,value| yield(key,value)} end def SupportedVerbs.all @hash.values end SupportedVerbs.add_item :COPY, :copy SupportedVerbs.add_item :DELETE, :delete SupportedVerbs.add_item :GET, :get SupportedVerbs.add_item :HEAD, :head SupportedVerbs.add_item :LOCK, :lock SupportedVerbs.add_item :MKCOL, :mkcol SupportedVerbs.add_item :MOVE, :move SupportedVerbs.add_item :OPTIONS, :options SupportedVerbs.add_item :PATCH, :patch SupportedVerbs.add_item :POST, :post SupportedVerbs.add_item :PROPFIND, :propfind SupportedVerbs.add_item :PROPPATCH, :proppatch SupportedVerbs.add_item :PUT, :put SupportedVerbs.add_item :TRACE, :trace SupportedVerbs.add_item :UNLOCK, :unlock end end
Version data entries
4 entries across 4 versions & 1 rubygems