synapse_pay_rest 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34f01dcfa0cfe6c0722c7e1706e916065ef730c0
|
4
|
+
data.tar.gz: 399341d2a0ab4afc6f0df3723bd25bec7eea9345
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60a049299b9389304f96d87eb60a748e371a306d606eeb3f0da6dfd97ad8b234cb8df7806b2c89474a5c6b3fb4517fdc75f2797969680d79aa2d7724f50d850b
|
7
|
+
data.tar.gz: 106f3c69aaab20c61c4cc85abce4124ced132fbd83168548ae1d6dc53143dc48bfc64a61798750687aeec74bf83a7b2d2dad1a7d3ed03bfd5d1981f387cdbd21
|
data/lib/synapse_pay_rest.rb
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
# Basic wrapper around the the requests library.
|
2
2
|
require_relative "synapse_pay_rest/http_client"
|
3
3
|
# Assign all the api classes
|
4
|
-
require_relative "synapse_pay_rest/api/
|
5
|
-
require_relative "synapse_pay_rest/api/
|
4
|
+
require_relative "synapse_pay_rest/api/Users"
|
5
|
+
require_relative "synapse_pay_rest/api/Nodes"
|
6
6
|
require_relative "synapse_pay_rest/api/Trans"
|
7
7
|
|
8
8
|
module SynapsePayRest
|
9
9
|
class Client
|
10
10
|
|
11
11
|
attr_accessor :client
|
12
|
-
attr_accessor :
|
13
|
-
attr_accessor :
|
12
|
+
attr_accessor :users
|
13
|
+
attr_accessor :nodes
|
14
14
|
attr_accessor :trans
|
15
15
|
|
16
16
|
def initialize(options: , user_id: nil)
|
17
17
|
base_url = 'https://synapsepay.com/api/3'
|
18
|
-
if options.has_key?('
|
19
|
-
if options['
|
18
|
+
if options.has_key?('development_mode')
|
19
|
+
if options['development_mode']
|
20
20
|
base_url = 'https://sandbox.synapsepay.com/api/3'
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
24
|
@client = HTTPClient.new options, base_url, user_id: user_id
|
25
|
-
@
|
26
|
-
@
|
25
|
+
@users = Users.new @client
|
26
|
+
@nodes = Nodes.new @client
|
27
27
|
@trans = Trans.new @client
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synapse_pay_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Hipps
|
@@ -31,9 +31,9 @@ extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
33
|
- lib/synapse_pay_rest.rb
|
34
|
-
- lib/synapse_pay_rest/api/
|
34
|
+
- lib/synapse_pay_rest/api/Nodes.rb
|
35
35
|
- lib/synapse_pay_rest/api/Trans.rb
|
36
|
-
- lib/synapse_pay_rest/api/
|
36
|
+
- lib/synapse_pay_rest/api/Users.rb
|
37
37
|
- lib/synapse_pay_rest/http_client.rb
|
38
38
|
homepage: https://rubygems.org/gems/synapse_pay_rest
|
39
39
|
licenses:
|