rixml 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rixml.rb +7 -5
- data/rixml.gemspec +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: b18fdbd91422325cb981369044b17ee46cdd0201
|
4
|
+
data.tar.gz: b05a6505d3473d5162361a1126d6d9507233291f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 271ef7e5317b2e41d8d019cf2ad36d920834e92922337da8dfad77ea95ffa5e9837709f3506b0e475dc5a026a1116854dc4a80308f067837a538e6b9a578b2e4
|
7
|
+
data.tar.gz: 23600a0bf97cee375dee8d25e3ce89721e31d3e6e836af3266f4eae92205da97f40fc773361db72203652ad9538584aa979c14f0ddacfe9c2e41ec1c03048c4e
|
data/lib/rixml.rb
CHANGED
@@ -94,11 +94,13 @@ class RIXML
|
|
94
94
|
|
95
95
|
def parse_companies_from_context(context)
|
96
96
|
companies = []
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
97
|
+
[context['IssuerDetails']].flatten.compact.each do |issuer|
|
98
|
+
list = issuer.try(:[], 'Issuer')
|
99
|
+
next if list.nil?
|
100
|
+
list = [list] unless list.is_a? Array
|
101
|
+
list.select { |c| c['issuerType'] == 'Corporate' }.each do |company|
|
102
|
+
companies << parse_company_info(company)
|
103
|
+
end
|
102
104
|
end
|
103
105
|
companies
|
104
106
|
end
|
data/rixml.gemspec
CHANGED