bills-payment 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bills-payment.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15bd6c2bf7d6ba2b8602358c100f7d7bdd6d518771c2cb89fade651b4bfc5caf
4
- data.tar.gz: 5fa81081d42d2ef5809d6986a4f288903991b12571d2020eb916acf7b2106eec
3
+ metadata.gz: 6e4423fbeab003e91a7afe3622c2d73eca0f3609e23a0adda5773d79db70d4ec
4
+ data.tar.gz: 7fcb9ad0eac81eaa94bd04caab61b5bc357f08ee0bdd2fcb41341a6ef9b725c1
5
5
  SHA512:
6
- metadata.gz: 8af043bb97480cd19e296b68d778bd601dd72e88748eca942a9b1a4903a99567f59c4ea77d88a84ed24f8f35fd704ac84fc770d7980b6a3ea6a07c5c3cbc909c
7
- data.tar.gz: 214f595e1a78d21cc1371ed82e4de363bf1fae0ce5f6890ae0f020d8468c396e563105d4510813b21d0073ded32ed271756c9cda8e1f056ee24bb6087ecc0db1
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bills-payment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sahu Minaketana