smartpay 0.2.10 → 0.2.11

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12e94e9a107f36c71ff8aebd7b84b003df802033793c19cc5adc418320ea9c2f
4
- data.tar.gz: 88c3044a95a05a57927ec59df5b78217ee3be450f2fb764f271907dd66d565c8
3
+ metadata.gz: 0353211f9e0231c5524115accebba99be527dd01361f2706d587626d81e8129f
4
+ data.tar.gz: b96ca9b9bd0aaac4746f5849ea29ef9e098de79f0de59fa4e9acb0f3ebf05a21
5
5
  SHA512:
6
- metadata.gz: 7acc9bba7dcddaafab82fdecdcbe0a74a33a6cae7466241fe154882c19540d415bae65668fd62c04fd6828617f7407eeb23df466bda3427ecb3639b14eb41ee7
7
- data.tar.gz: 9e1a06d03b2f328e6d2cc466745a102630c8b772b52f30275051c2b1b3edbb9222be205ebc861ccb1676048a447d208a3513b64fa21994588007a74856c88285
6
+ metadata.gz: 7778f540af382892db264134748b4e1be41e1bc1292e4ab569393b342fe4e3c7caf55b36b70b1b41a125b99e882ba7b5ef1bea6c38276d76695546cedaa1101c
7
+ data.tar.gz: cc1a7c500e098b63d5650472f50b5c23c072d88c1569a7e4b457ead20c2bf99434b48a86c59da786d4baa4c6df7d0045a4f4884e6a2b407566b597346cd3d6e4
@@ -2,11 +2,11 @@
2
2
 
3
3
  module Smartpay
4
4
  class Configuration
5
- attr_accessor :post_timeout
6
- attr_accessor :public_key, :secret_key, :api_url, :checkout_url
5
+ attr_accessor :public_key, :secret_key
6
+ attr_writer :post_timeout, :api_url, :checkout_url
7
7
 
8
8
  DEFAULT_TIMEOUT_SETTING = 30
9
- DEFAULT_API_URL = 'https://api.smartpay.co'
9
+ DEFAULT_API_URL = 'https://api.smartpay.co/v1'
10
10
  DEFAULT_CHECKOUT_URL = 'https://checkout.smartpay.co'
11
11
 
12
12
  def initialize
@@ -14,5 +14,17 @@ module Smartpay
14
14
  @api_url = DEFAULT_API_URL
15
15
  @checkout_url = DEFAULT_CHECKOUT_URL
16
16
  end
17
+
18
+ def post_timeout
19
+ @post_timeout || DEFAULT_TIMEOUT_SETTING
20
+ end
21
+
22
+ def api_url
23
+ @api_url || DEFAULT_API_URL
24
+ end
25
+
26
+ def checkout_url
27
+ @checkout_url || DEFAULT_CHECKOUT_URL
28
+ end
17
29
  end
18
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Smartpay
4
- VERSION = "0.2.10"
4
+ VERSION = "0.2.11"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smartpay