class AutomobileMakeModelYearVariant::Guru

For errata

Public Instance Methods

is_2000_b3000_5_spd_4wd_ethanol_ucity_19?(row) click to toggle source
# File lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb, line 55
def is_2000_b3000_5_spd_4wd_ethanol_ucity_19?(row)
  row['year'] == 2000 and
    row['model_name'] =~ /b3000 ffv/i and
    row['speeds'] == '5' and
    row['drive'] == '4WD' and
    row['fuel_code'] == 'E' and
    row['ucty'].to_i == 19
end
is_a_1989_hyundai_sonata_missing_transmission_and_speeds?(row) click to toggle source
# File lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb, line 31
def is_a_1989_hyundai_sonata_missing_transmission_and_speeds?(row)
  row['make_name'].downcase == 'hyundai' and row['model_name'].downcase == 'sonata' and row['year'] == 1989 and (row['transmission'].blank? || row['speeds'].blank?)
end
is_a_1989_isuzu_trooper_missing_transmission_and_speeds?(row) click to toggle source
# File lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb, line 35
def is_a_1989_isuzu_trooper_missing_transmission_and_speeds?(row)
  row['make_name'].downcase == 'isuzu' and row['model_name'].downcase == 'trooper' and row['year'] == 1989 and (row['transmission'].blank? || row['speeds'].blank?)
end
is_a_1995_ffv?(row) click to toggle source
# File lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb, line 43
def is_a_1995_ffv?(row)
  row['year'] == 1995 and row['model_name'] =~ / ffv$/i
end
is_a_1999_ffv?(row) click to toggle source
# File lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb, line 47
def is_a_1999_ffv?(row)
  row['year'] == 1999 and row['model_name'] =~ / ffv$/i
end
is_a_2000_ford_4wd_ffv?(row) click to toggle source
# File lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb, line 51
def is_a_2000_ford_4wd_ffv?(row)
  row['year'] == 2000 and row['make_name'].downcase == 'ford' and row['drive'] == '4WD' and row['model_name'] =~ / ffv$/i
end
is_a_2005_mercedes_benz_slk55_amg?(row) click to toggle source
# File lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb, line 39
def is_a_2005_mercedes_benz_slk55_amg?(row)
  row['make_name'].downcase == 'mercedes-benz' and row['model_name'].downcase == 'slk55 amg' and row['year'] == 2005
end
is_a_colt_vista_or_wagon?(row) click to toggle source
# File lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb, line 75
def is_a_colt_vista_or_wagon?(row)
  row['model_name'] =~ /^colt [vw].+$/i
end
is_a_station_wagon?(row) click to toggle source
# File lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb, line 64
def is_a_station_wagon?(row)
  row['size_class'] =~ /station wagons/i
end
is_a_subaru_sedan?(row) click to toggle source
# File lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb, line 79
def is_a_subaru_sedan?(row)
  row['make_name'] =~ /subaru/i and row['model_name'] =~ /^sedan(\/.+)?$/i
end
is_a_turbo_brooklands?(row) click to toggle source
# File lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb, line 27
def is_a_turbo_brooklands?(row)
  row['model_name'] =~ /TURBO R\/RL BKLDS/i
end