synapse_pay_rest 0.0.6 → 0.0.7

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
  SHA1:
3
- metadata.gz: 0ec5fd4019c49efff7f6ec508dbd49e93c6c7248
4
- data.tar.gz: 880392184d69b958d6bddc8e130c4f507bcb6766
3
+ metadata.gz: 34f01dcfa0cfe6c0722c7e1706e916065ef730c0
4
+ data.tar.gz: 399341d2a0ab4afc6f0df3723bd25bec7eea9345
5
5
  SHA512:
6
- metadata.gz: 85418a88629d939bd9ff6116e2307353d1071cae9f7a599fdbb7890505c2da0ed089ec19b837d5842fdbe2e1eda77237be36f5cc9b4ee62dcf925469ac4a578e
7
- data.tar.gz: 3df9f65412f02ce3400754ac0e29ee43c51e6d2d140d8c3bf34f270e8e90a107c0b5d2f4bc4c1b510566952e99ff2d62310efcf9471f062a1151de275b1bd40e
6
+ metadata.gz: 60a049299b9389304f96d87eb60a748e371a306d606eeb3f0da6dfd97ad8b234cb8df7806b2c89474a5c6b3fb4517fdc75f2797969680d79aa2d7724f50d850b
7
+ data.tar.gz: 106f3c69aaab20c61c4cc85abce4124ced132fbd83168548ae1d6dc53143dc48bfc64a61798750687aeec74bf83a7b2d2dad1a7d3ed03bfd5d1981f387cdbd21
@@ -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/User"
5
- require_relative "synapse_pay_rest/api/Node"
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 :user
13
- attr_accessor :node
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?('is_development')
19
- if options['is_development']
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
- @user = User.new @client
26
- @node = Node.new @client
25
+ @users = Users.new @client
26
+ @nodes = Nodes.new @client
27
27
  @trans = Trans.new @client
28
28
  end
29
29
  end
@@ -1,5 +1,5 @@
1
1
  module SynapsePayRest
2
- class Node
2
+ class Nodes
3
3
 
4
4
  attr_accessor :client
5
5
 
@@ -3,7 +3,7 @@ require 'base64'
3
3
  require 'open-uri'
4
4
 
5
5
  module SynapsePayRest
6
- class User
6
+ class Users
7
7
 
8
8
  attr_accessor :client
9
9
 
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.6
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/Node.rb
34
+ - lib/synapse_pay_rest/api/Nodes.rb
35
35
  - lib/synapse_pay_rest/api/Trans.rb
36
- - lib/synapse_pay_rest/api/User.rb
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: