netki 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.
- checksums.yaml +4 -4
- data/lib/netki/netki.rb +3 -9
- data/lib/netki/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b46bd547721cf1146a0dce0eba95249933d8056
|
4
|
+
data.tar.gz: 09e6f59dc21c074e9da4e75be99c8a1e506582ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 383f430939a557a70a7acb1217b5e8ee1ee6393cf2318cf44b01633446eae7ffcaccac817e550574ccc2ba0ba806a17ca9eca369f19acf2d60c2a782ba979db0
|
7
|
+
data.tar.gz: d2d780844ae8d36506ad457f9139692027022dc1ead9d304f56fc75985c1a182724654aae6d71592c0067078dba506f1db795187ec02b58bf9383f38cef70e4e
|
data/lib/netki/netki.rb
CHANGED
@@ -198,13 +198,7 @@ module Netki
|
|
198
198
|
# * API Key -> Netki API Key is available only upon API Key creation. Be sure to store it somewhere safe!
|
199
199
|
#
|
200
200
|
|
201
|
-
|
202
|
-
attr_reader :api_key
|
203
|
-
attr_reader :api_url
|
204
|
-
|
205
|
-
attr_writer :partner_id
|
206
|
-
attr_writer :api_key
|
207
|
-
attr_writer :api_url
|
201
|
+
attr_accessor :partner_id, :api_key, :api_url
|
208
202
|
|
209
203
|
def initialize(partner_id=nil, api_key=nil, api_url='https://api.netki.com')
|
210
204
|
@partner_id = partner_id
|
@@ -315,7 +309,7 @@ module Netki
|
|
315
309
|
# * external_id -> Any unique external ID that you may want to use to track this specific wallet name
|
316
310
|
#
|
317
311
|
def create_new_walletname(domain_name, name, wallets={}, external_id=nil)
|
318
|
-
new_wn = WalletName.new(domain_name, name, wallets, external_id)
|
312
|
+
new_wn = WalletName.new(domain_name, name, wallets, external_id: external_id)
|
319
313
|
new_wn.set_api_opts(@api_url, @partner_id, @api_key)
|
320
314
|
new_wn
|
321
315
|
end
|
@@ -341,7 +335,7 @@ module Netki
|
|
341
335
|
wn['wallets'].each do |wallet|
|
342
336
|
wallets[wallet['currency']] = wallet['wallet_address']
|
343
337
|
end
|
344
|
-
wn_obj = WalletName.new(wn['domain_name'], wn['name'], wallets, wn['external_id'], wn['id'])
|
338
|
+
wn_obj = WalletName.new(wn['domain_name'], wn['name'], wallets, external_id: wn['external_id'], id: wn['id'])
|
345
339
|
wn_obj.set_api_opts(@api_url, @partner_id, @api_key)
|
346
340
|
wn_list.push(wn_obj)
|
347
341
|
end
|
data/lib/netki/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt David
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|