Class: ApiTester::SupportedVerbs

Inherits:
Object
  • Object
show all
Defined in:
lib/api-tester/util/supported_verbs.rb

Class Method Summary collapse

Class Method Details

.add_item(key, value) ⇒ Object



3
4
5
6
# File 'lib/api-tester/util/supported_verbs.rb', line 3

def SupportedVerbs.add_item(key, value)
  @hash ||= {}
  @hash[key] = value
end

.allObject



16
17
18
# File 'lib/api-tester/util/supported_verbs.rb', line 16

def SupportedVerbs.all
  @hash.values
end

.const_missing(key) ⇒ Object



8
9
10
# File 'lib/api-tester/util/supported_verbs.rb', line 8

def SupportedVerbs.const_missing(key)
  @hash[key]
end

.eachObject



12
13
14
# File 'lib/api-tester/util/supported_verbs.rb', line 12

def SupportedVerbs.each
  @hash.each {|key,value| yield(key,value)}
end