Sha256: 7ad027d5d5c342681f41e91cec2012284e662fca1800df92f9fbd65435ab1920
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true module ApiTester # Class defining the verbs this tool supports class SupportedVerbs def self.add_item(key, value) @hash ||= {} @hash[key] = value end def self.const_missing(key) @hash[key] end def self.each @hash.each { |key, value| yield(key, value) } end def self.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
api-tester-1.1.1 | lib/api-tester/util/supported_verbs.rb |