Method: SecQuery::Filing.filings_for_index
- Defined in:
- lib/sec_query/filing.rb
.filings_for_index(index) ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/sec_query/filing.rb', line 56 def self.filings_for_index(index) [].tap do |filings| content_section = false index.each_line do |row| content_section = true if row.include?('-------------') next if !content_section || row.include?('------------') filing = filing_for_index_row(row) filings << filing unless filing.nil? end end end |