tap-clutch 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/models/card.rb +4 -2
- data/lib/models/transaction.rb +2 -1
- data/lib/tap_clutch/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: fc0c366f42a789cc28072b003f91bd0ff0cd2daf
|
4
|
+
data.tar.gz: a84aa6da3d6592ece88f9e709069fdb41fbd64bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3558a26172f43e71234aea65868915513edec48bac5edebaa0d348c991c8e115b5658eb065eecb435e1beb91cf5917cd2b624ce866b6a52f7cb4fcfeca9a3f90
|
7
|
+
data.tar.gz: 07a0de93e22b24f6067e15875734f108b91ce27d96038c82f4d9a1bfe391e640195624d39bc65b28153f6aa73f85499272827bc400e2600314f363e291127ccf
|
data/lib/models/card.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require_relative 'base'
|
4
4
|
require_relative 'transaction'
|
5
|
+
require_relative '../hash'
|
5
6
|
|
6
7
|
module TapClutch
|
7
8
|
module Models
|
@@ -36,11 +37,12 @@ module TapClutch
|
|
36
37
|
}
|
37
38
|
)
|
38
39
|
|
39
|
-
|
40
|
+
return unless response.cards.first
|
41
|
+
new(response.cards.first.to_h.transform_keys(&:underscore))
|
40
42
|
end
|
41
43
|
|
42
44
|
def extra_records
|
43
|
-
Transaction.history(data
|
45
|
+
Transaction.history(data['card_number'])
|
44
46
|
end
|
45
47
|
end
|
46
48
|
end
|
data/lib/models/transaction.rb
CHANGED
data/lib/tap_clutch/version.rb
CHANGED