acasi_api 0.0.4 → 0.0.5
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/acasi_api.rb +11 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6d612f637bda9021b50aae27480b4a69c6cef3327de171e590ed79415225c5c
|
|
4
|
+
data.tar.gz: 8a04404cca5d5228b7f20423ba63ba5f0ad962cabd22c4484ea62993038867ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 388412388e4081768a062881a5ee8667fb924de54205d5ca25bb923fb73075701ab67424b4445a5cb2c50c0ad2d4ac380597f0c3ab6ae0895c007b1ded90b48c
|
|
7
|
+
data.tar.gz: 30a1f2b9054d8f916c8a3af385ed59cfe4cbaad09ac9bb666e246e8a7edec3b316af9cc0beb60bdb0a626820704ebfcbba4be96046687cb2136ab0deab18f0bb
|
data/lib/acasi_api.rb
CHANGED
|
@@ -4,7 +4,7 @@ module Acasi
|
|
|
4
4
|
|
|
5
5
|
class WhoIs
|
|
6
6
|
def self.awesome?
|
|
7
|
-
puts "ACASI IS AWESOME V 0.0.
|
|
7
|
+
puts "ACASI IS AWESOME V 0.0.5!!"
|
|
8
8
|
end
|
|
9
9
|
end
|
|
10
10
|
|
|
@@ -38,5 +38,15 @@ module Acasi
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
class Users
|
|
42
|
+
def self.bank_account_balance(user_id)
|
|
43
|
+
JSON.parse(RestClient::Request.execute(
|
|
44
|
+
method: :get,
|
|
45
|
+
url: "#{Acasi.api_url}/users/bank_account_balance",
|
|
46
|
+
headers: {params: {api_token: Acasi.api_key, user_id: user_id}}
|
|
47
|
+
).body)
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
41
51
|
end
|
|
42
52
|
|