Class: UdiseSchoolReportReader::SchoolReportParser::OutputPaths

Inherits:
Object
  • Object
show all
Defined in:
lib/udise_school_report_reader/school_report_parser.rb

Constant Summary collapse

EXTENSIONS =
{
  txt: '.txt',
  compressed_txt: '_compressed.txt',
  blocks_csv: '_blocks.csv',
  rects_csv: '_rects.csv',
  combined_csv: '_combined.csv',
  rte_html: '_rte.html',
  enrollment_html: '_enrollment.html',
  ews_html: '_ews.html',
  yaml: '.yml'
}

Instance Method Summary collapse

Constructor Details

#initialize(pdf_path, output_dir) ⇒ OutputPaths

Returns a new instance of OutputPaths.



105
106
107
108
109
# File 'lib/udise_school_report_reader/school_report_parser.rb', line 105

def initialize(pdf_path, output_dir)
  @pdf_path = pdf_path
  @output_dir = output_dir
  @base_name = File.basename(pdf_path, '.pdf')
end