bills-payment 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bills-payment.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e4423fbeab003e91a7afe3622c2d73eca0f3609e23a0adda5773d79db70d4ec
|
4
|
+
data.tar.gz: 7fcb9ad0eac81eaa94bd04caab61b5bc357f08ee0bdd2fcb41341a6ef9b725c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e98dd1219f4b0fdc47363c0d659b8673d5b71365d655ee0fb40023c56f6331e6391107d9dc2affc0d56bbdf5ef9c4fdf55ed593d25cddac4c3edff69e8c38c4
|
7
|
+
data.tar.gz: 5a2a40117d97d131241f7e57fec28aa11992909f3feef9c4b7cd3000e4f4b6dd35de2827f1591dc43cbad39e24c1cb83bc33d52e23515bb9541edeb7b8ca0102
|
data/lib/bills-payment.rb
CHANGED
@@ -17,7 +17,7 @@ require_relative 'bills-payment/bills_payment_object'
|
|
17
17
|
require_relative 'bills-payment/worker'
|
18
18
|
|
19
19
|
module BillsPayment
|
20
|
-
base_url = 'http://14.98.171.134:9090/'
|
20
|
+
@base_url = 'http://14.98.171.134:9090/'
|
21
21
|
|
22
22
|
class << self
|
23
23
|
# BillsPaymentError :api_key, :base_url
|
@@ -25,7 +25,7 @@ module BillsPayment
|
|
25
25
|
def request(api_url, method, params = {})
|
26
26
|
# raise(AuthenticationError, 'Set your API Key using BillsPayment.api_key = <API_KEY>') unless api_key
|
27
27
|
begin
|
28
|
-
url = URI.join(base_url, api_url).to_s
|
28
|
+
url = URI.join(@base_url, api_url).to_s
|
29
29
|
response = RestClient::Request.execute(method: method, url: url, payload: params.to_json, headers: request_headers)
|
30
30
|
JSON.parse(response) unless response.empty?
|
31
31
|
rescue RestClient::ExceptionWithResponse => e
|