paypal-rest-api 0.2.0 → 0.2.1

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 (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -1
  3. data/VERSION +1 -1
  4. data/lib/paypal-api.rb +24 -0
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e1ec764b9c93fe1fb6fe6f49e2fca6d5e0280a1182b0c4c4f54bee84c43b98d
4
- data.tar.gz: c03728c11831a20270e38f111165747634298a3ca4d8bf97a26de9da9baa53b1
3
+ metadata.gz: d478a936d84b05a9f4a6eb98491649648250cc49dcb3f524381404d9ded0084f
4
+ data.tar.gz: 5ec4bc0bbf68f3be84ce5cd1cd31e85f6fec5c9bc6ce795fd3b64eea902d033f
5
5
  SHA512:
6
- metadata.gz: 26ca09bb472c049aa9a5cfa81485e11180dc5d1d19776e960beebb6f9db485b9d58ddda18f232943affb1b3d4c27e55ec3c82b4a55be92f16be6ea5c2f836b7e
7
- data.tar.gz: f082f9263cffbc5a7a0561557284685eed6c2c2c67204d8c89271e82dedc007b63e3e616e49fc5a86925986df7c52b6afd5e053061785b2909d703c0017db4e7
6
+ metadata.gz: 15d2abe1866d6724c00520b43dfec0ac4b9e8383039e3580b78c182bbd184fd2499c0beaa1328500453e85868622fc0e1e49a4dbdc4f58e6401258021f04dd69
7
+ data.tar.gz: c51693b8445126a269f7d356baa4cba3ca40ffc0a19e80bc1278b69061146e723589237ac85a5940381309868f2af2e619cbdc4bc76295f0420d7606ab010d45
data/README.md CHANGED
@@ -99,7 +99,12 @@ response.request # Request that generates this response
99
99
 
100
100
  ## Configuration options
101
101
 
102
- PaypalAPI client accepts this additional options: `:live`, `:retries`, `:http_opts`, `:cache`
102
+ PaypalAPI client accepts this additional options:
103
+
104
+ - `:live`
105
+ - `:retries`,
106
+ - `:http_opts`
107
+ - `:cache`
103
108
 
104
109
  ### Option `:live`
105
110
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/lib/paypal-api.rb CHANGED
@@ -18,6 +18,30 @@ module PaypalAPI
18
18
  # @return [Client] PaypalAPI client
19
19
  attr_writer :client
20
20
 
21
+ # Checks if PayPal LIVE environment enabled
22
+ # @return [Boolean] Checks if PayPal LIVE environment enabled
23
+ def live?
24
+ client.live?
25
+ end
26
+
27
+ # Checks if PayPal SANDBOX environment enabled
28
+ # @return [Boolean] Checks if PayPal SANDBOX environment enabled
29
+ def sandbox?
30
+ client.sandbox?
31
+ end
32
+
33
+ # Base API URL
34
+ # @return [String] Base API URL
35
+ def api_url
36
+ client.api_url
37
+ end
38
+
39
+ # Base WEB URL
40
+ # @return [String] Base WEB URL
41
+ def web_url
42
+ client.web_url
43
+ end
44
+
21
45
  # @!macro [new] request
22
46
  #
23
47
  # @api public
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypal-rest-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Glushkov