uniara_virtual_parser 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uniara_virtual_parser/client.rb +3 -3
- data/lib/uniara_virtual_parser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3e6018db9abeadb9c7bd676e11a2d0bc40c63b0
|
4
|
+
data.tar.gz: c5f8d508ba47252fa0c59a6afc5114f571ef8e60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dad49c634c10aae8f8fbced01782a46bffbf34729bda16469b7ce82c96b044994fdf2a5e10dd7a7bd7ce881c590d8d937bdcd88eff8e79b876f4063b23325be9
|
7
|
+
data.tar.gz: 82830c1d05e4a974657412c383f87f1d69d1ea6e347c111fcbbeaba4ff74d47cd25e5ccc06c6cab20379af7dbebe0903ae12e0e783478ba6c7d3fd2c44118037
|
@@ -18,18 +18,18 @@ module UniaraVirtualParser
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def post(path, body=nil)
|
21
|
-
uri = URI("#{
|
21
|
+
uri = URI("#{endpoint}#{path}")
|
22
22
|
Net::HTTP.post_form(uri, body)
|
23
23
|
end
|
24
24
|
|
25
25
|
def configure_endpoint(endpoint)
|
26
|
-
@
|
26
|
+
@endpoint = endpoint
|
27
27
|
end
|
28
28
|
|
29
29
|
private
|
30
30
|
|
31
31
|
def endpoint
|
32
|
-
ENDPOINT
|
32
|
+
@endpoint || ENDPOINT
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|