lib/proptax.rb in proptax-0.0.3 vs lib/proptax.rb in proptax-0.0.4

- old
+ new

@@ -13,11 +13,11 @@ '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', + 'Walkout Basement', 'Garage Type', 'Garage Area', 'Fireplace Count', 'Renovation', 'Constructed On Original Foundation', 'Modified For Disabled', 'Old House On New Foundation', 'Basementless', 'Penthouse'] # # Keys that can be assigned multiple values @@ -115,10 +115,17 @@ # csv_hash[current_header] = clean(line, current_header) # current_header = nil # end end end - Headers.map { |header| csv_hash[header] || '0' } +# Headers.map { |header| csv_hash[header] || '0' } + Headers.map do |header| + if header == 'Renovation' + csv_hash[header] || 'unk.' + else + csv_hash[header] || '0' + end + end end # # Return square footage only when given spacial data #