Skip to content

Commit eb4e286

Browse files
committed
Prefer method rather than verb.
1 parent 44db4af commit eb4e286

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/async/rest/representation.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ def self.[] wrapper
3131
end
3232

3333
class << self
34-
::Protocol::HTTP::Methods.each do |name, verb|
35-
define_method(verb.downcase) do |resource, payload = nil, &block|
36-
self::WRAPPER.call(resource, verb, payload) do |response|
34+
::Protocol::HTTP::Methods.each do |name, method|
35+
define_method(method.downcase) do |resource, payload = nil, &block|
36+
self::WRAPPER.call(resource, method, payload) do |response|
3737
return self.for(resource, response, &block)
3838
end
3939
end

0 commit comments

Comments
 (0)