camt_parser 2.7.0 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/camt_parser/052/report.rb +8 -0
- data/lib/camt_parser/general/account.rb +4 -0
- data/lib/camt_parser/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: edbff7658266a9cf3b798b83f7de21e344c2186be71b41c2d5b24774f3256ff4
|
4
|
+
data.tar.gz: f67ab8465111d7fc8defb21a0737fecb3e8fd453be7fd6f7dcd06dfb2340cf4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d19c2dacbda91453d1428316e4821b9c7cec23221a92712ce2e2ceeaf867f5892295889cd17ca8a8e9d934d6d35732dfb919d0e7b7686648251841c2e1884f6f
|
7
|
+
data.tar.gz: 11951969b5acabd9e89c5d0b23f2810caf07ec99b8d743ebc9ea3280efbf1a4d78566c0da4abf8ee802994c3f58f8e7f5b5d51f8835e68399b3fe2c5d2ff88be
|
@@ -25,6 +25,14 @@ module CamtParser
|
|
25
25
|
@legal_sequence_number ||= @xml_data.xpath('LglSeqNb/text()').text
|
26
26
|
end
|
27
27
|
|
28
|
+
def from_date_time
|
29
|
+
@from_date_time ||= (x = @xml_data.xpath('FrToDt/FrDtTm')).empty? ? nil : Time.parse(x.first.content)
|
30
|
+
end
|
31
|
+
|
32
|
+
def to_date_time
|
33
|
+
@to_date_time ||= (x = @xml_data.xpath('FrToDt/ToDtTm')).empty? ? nil : Time.parse(x.first.content)
|
34
|
+
end
|
35
|
+
|
28
36
|
def opening_balance
|
29
37
|
@opening_balance ||= begin
|
30
38
|
bal = @xml_data.xpath('Bal/Tp//Cd[contains(text(), "PRCD")]').first.ancestors('Bal')
|
data/lib/camt_parser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: camt_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Schoknecht
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|