lib/proptax.rb in proptax-0.0.4 vs lib/proptax.rb in proptax-0.1.0
- old
+ new
@@ -5,34 +5,32 @@
require 'csv'
require 'pathname'
#
- # Headers for publicly available assessment data for 2018.
+ # Headers for publicly available assessment data for 2019.
#
Headers = ['Current Assessed Value', 'Roll Number', 'Location Address', 'Taxation Status',
'Assessment Class', 'Property Type', 'Property Use', 'Valuation Approach',
'Market Adjustment', 'Community', 'Market Area', 'Sub Neighbourhood Code (SNC)',
'Sub Market Area', 'Influences', 'Land Use Designation', 'Assessable Land Area',
'Building Count', 'Building Type/Structure', 'Year of Construction',
- 'Quality', 'Total Living Area Above Grade', 'Living Area Below Grade', 'Basement Suite',
- 'Walkout Basement', 'Garage Type', 'Garage Area', 'Fireplace Count', 'Renovation',
- 'Constructed On Original Foundation', 'Modified For Disabled', 'Old House On New Foundation',
- 'Basementless', 'Penthouse']
+ 'Quality', 'Total Living Area Above Grade', 'Living Area Below Grade',
+ 'Garage Area', 'Fireplace Count']
#
# Keys that can be assigned multiple values
#
MultiFieldHeaders = ['Influences']
#
- # Section headers for publicly available assessment data for 2018.
+ # Section headers for publicly available assessment data for 2019.
#
Sections = ['Assessment Details', 'Assessment Approach', 'Location Details', 'Land Details', 'Building Details']
#
- # Convert a directory containing 2018 PDF assessment reports to text and
+ # Convert a directory containing 2019 PDF assessment reports to text and
# write the relevant CSV information to stdout
#
# @param string - path to directory containing PDFs
#
# @return nil
@@ -57,14 +55,14 @@
puts "Directory #{dir_name} does not exist"
end
end
#
- # Take text-converted 2018 assessment reports and extract the relevant data
+ # Take text-converted 2019 assessment reports and extract the relevant data
# into an array.
#
- # @param string - text converted 2018 assessment report
+ # @param string - text converted 2019 assessment report
#
# @return array
#
def self.parse(text)
csv_hash = {}
@@ -142,17 +140,19 @@
when 'Assessable Land Area',
'Total Living Area Above Grade',
'Living Area Below Grade',
'Garage Area'
text = text.split(' ')[0].gsub(/,/, '')
- when 'Basement Suite',
- 'Walkout Basement',
- 'Constructed On Original Foundation',
- 'Modified For Disabled',
- 'Old House On New Foundation',
- 'Basementless',
- 'Penthouse',
- 'Market Adjustment'
+# when 'Basement Suite',
+# 'Walkout Basement',
+# 'Constructed On Original Foundation',
+# 'Modified For Disabled',
+# 'Old House On New Foundation',
+# 'Basementless',
+# 'Penthouse',
+# 'Market Adjustment'
+# text = text == 'Yes' ? 'T' : 'F'
+ when 'Market Adjustment'
text = text == 'Yes' ? 'T' : 'F'
end
text
end
end