http-client-generator 0.1.28 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 438bc8f1ea685db474f035bf63f255ab08dca8a04c29cdb6257989fac8131200
|
4
|
+
data.tar.gz: 28f34fbea182ee2d04ea761ad795356e1c479615e73abe70812a92b919845927
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61286bf0e127604db8cbf95622e1341841fb8ee600f646b2b096059a731d8f44762943c9868e775e44b6a74b19418252b9795586093f5937d3770a42124ef9a8
|
7
|
+
data.tar.gz: b9452428bdb610ca52630a2d85163695f59f7071f08f409b4125447efc02aa7015ca94668af6d14729563391ef30582b96b3624fc0d35dd08b78507d08ce3db5
|
@@ -25,7 +25,7 @@ module HttpClientGenerator
|
|
25
25
|
resources = resources_definition.resources
|
26
26
|
|
27
27
|
resources.each do |resource|
|
28
|
-
method_name = :"#{resource.
|
28
|
+
method_name = :"#{resource.verb}_#{resource.name}"
|
29
29
|
|
30
30
|
define_singleton_method(method_name) do |url_options = {}, body: nil, **rest_args|
|
31
31
|
resource.perform_request(@url_helper, url_options, body, rest_args)
|