burglar 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/burglar/modules/plaid.rb +8 -1
- data/lib/burglar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b846aada4fa7612866c15d3d11abdc0f9629e9679f81e397dd84bae18ab655a6
|
4
|
+
data.tar.gz: 80c9c452bd1dba8631ce2daf6beb011f2908e3ef52831e847c5f15d2b722f432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f915956900c13c26218358b9d2fe9af73b8a9d7d67cd9235fe39aa08d4dbce2b850b5e7b088fcacdca8372a988b620b01c3cf99e3eb961fcf274d26410d4d21
|
7
|
+
data.tar.gz: 95c69ba4bb1f0395a318760a9fe34d7eb788f045e7b61ceb7367a16ac0058c5facebc17dce2495f34a269f897c5dadb66a12dc94e4c5e144114b0bacddb02a39
|
@@ -10,6 +10,13 @@ module LogCabin
|
|
10
10
|
|
11
11
|
PLAID_DOMAIN = 'https://plaid.com'.freeze
|
12
12
|
|
13
|
+
def self.load_accounts(client, access_token)
|
14
|
+
@accounts ||= {}
|
15
|
+
return @accounts[access_token] if @accounts[access_token]
|
16
|
+
req = ::Plaid::AccountsGetRequest.new(access_token: access_token)
|
17
|
+
@accounts[access_token] = client.accounts_get(req).accounts
|
18
|
+
end
|
19
|
+
|
13
20
|
def raw_transactions # rubocop:disable Metrics/MethodLength
|
14
21
|
@raw_transactions ||= all_transactions.map do |row|
|
15
22
|
amount = format('$%.2f', row.amount)
|
@@ -100,7 +107,7 @@ module LogCabin
|
|
100
107
|
end
|
101
108
|
|
102
109
|
def accounts
|
103
|
-
|
110
|
+
LogCabin::Modules::Plaid.load_accounts(client, access_token)
|
104
111
|
end
|
105
112
|
|
106
113
|
def account
|
data/lib/burglar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: burglar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cymbal
|