blupee 0.1.3 → 0.1.4

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: c6554c0e03b6aedb2704e7069bc52ced45decbcb
4
- data.tar.gz: fbc05ebe2ca32e07296214f887b7a0a5c5bab543
3
+ metadata.gz: 9a0798a66e584c486e6bd8a84a5d3fe42269a6c9
4
+ data.tar.gz: b73a0ae5e1730af395cfdd4b469f7c286c270482
5
5
  SHA512:
6
- metadata.gz: 8eda395acd13786af39813fc6139d975d712203c0723930d75b838206f4a1fa559d705f9fdec513ce19f0f719fe413a50940864673c4a5818b17e53f09d843b4
7
- data.tar.gz: 4bbeba25293dce539ca045e29e4c72cee7505d81f4fbe4cf82b23e98734fd3a97ef9c0f30eb5e7a77eaa5a6b8de5c6928c467e18e893d1b497d3fe375896bcad
6
+ metadata.gz: 35ab8c51c776c82772e88795e5faab3c81c929646a952f9608d5a98a96482b4749a26c9f6301301ec791e57a230377ca6b508c57798938eebe73aee811f21c94
7
+ data.tar.gz: 7e79db1c2f7676b379269a904fa67b536cbd704a795fdfe05657704cdd7516761b31f78de70819c75f50b5765f7ee70c1ccba6aa3da7275ecb92321268ee60f5
@@ -12,8 +12,10 @@ module Blupee
12
12
  @wallet_address = attributes["wallet_address"]
13
13
  end
14
14
 
15
- def self.balance(id, options = {})
16
- response = Blupee.make_request("/eth/#{id}", {}, "get", {:use_ssl => true}.merge!(options))
15
+ # {:wallet_address=>""}
16
+ def self.balance(args, options = {})
17
+ wallet_address = args[:wallet_address]
18
+ response = Blupee.make_request("/eth/#{wallet_address}", {}, "get", {:use_ssl => true}.merge!(options))
17
19
  raise ServerError.new(response.status, response.body) if response.status >= 500
18
20
  raise OAuthTokenRequestError.new(response.status, response.body) if response.status >= 400
19
21
  response
@@ -12,8 +12,10 @@ module Blupee
12
12
  @wallet_address = attributes["wallet_address"]
13
13
  end
14
14
 
15
- def self.balance(id, options = {})
16
- response = Blupee.make_request("/omg/#{id}", {}, "get", {:use_ssl => true}.merge!(options))
15
+ # {:wallet_address=>""}
16
+ def self.balance(args, options = {})
17
+ wallet_address = args[:wallet_address]
18
+ response = Blupee.make_request("/omg/#{wallet_address}", {}, "get", {:use_ssl => true}.merge!(options))
17
19
  raise ServerError.new(response.status, response.body) if response.status >= 500
18
20
  raise OAuthTokenRequestError.new(response.status, response.body) if response.status >= 400
19
21
  response
@@ -11,8 +11,11 @@ module Blupee
11
11
  @balance = attributes["balance"]
12
12
  @wallet_address = attributes["wallet_address"]
13
13
  end
14
-
15
- def self.balance(contract_id, wallet_address, options = {})
14
+
15
+ # {:contract_id=>"", :wallet_address=>""}
16
+ def self.balance(args, options = {})
17
+ contract_id = args[:contract_id]
18
+ wallet_address = args[:wallet_address]
16
19
  response = Blupee.make_request("/token/#{contract_id}/#{wallet_address}", {}, "get", {:use_ssl => true}.merge!(options))
17
20
  raise ServerError.new(response.status, response.body) if response.status >= 500
18
21
  raise OAuthTokenRequestError.new(response.status, response.body) if response.status >= 400
@@ -1,3 +1,3 @@
1
1
  module Blupee
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blupee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blupee Inc.