blupee 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blupee/api/ether.rb +4 -2
- data/lib/blupee/api/omise_go.rb +4 -2
- data/lib/blupee/api/token.rb +5 -2
- data/lib/blupee/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a0798a66e584c486e6bd8a84a5d3fe42269a6c9
|
4
|
+
data.tar.gz: b73a0ae5e1730af395cfdd4b469f7c286c270482
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35ab8c51c776c82772e88795e5faab3c81c929646a952f9608d5a98a96482b4749a26c9f6301301ec791e57a230377ca6b508c57798938eebe73aee811f21c94
|
7
|
+
data.tar.gz: 7e79db1c2f7676b379269a904fa67b536cbd704a795fdfe05657704cdd7516761b31f78de70819c75f50b5765f7ee70c1ccba6aa3da7275ecb92321268ee60f5
|
data/lib/blupee/api/ether.rb
CHANGED
@@ -12,8 +12,10 @@ module Blupee
|
|
12
12
|
@wallet_address = attributes["wallet_address"]
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
|
-
|
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
|
data/lib/blupee/api/omise_go.rb
CHANGED
@@ -12,8 +12,10 @@ module Blupee
|
|
12
12
|
@wallet_address = attributes["wallet_address"]
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
|
-
|
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
|
data/lib/blupee/api/token.rb
CHANGED
@@ -11,8 +11,11 @@ module Blupee
|
|
11
11
|
@balance = attributes["balance"]
|
12
12
|
@wallet_address = attributes["wallet_address"]
|
13
13
|
end
|
14
|
-
|
15
|
-
|
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
|
data/lib/blupee/version.rb
CHANGED