Method: MecsRatio.find_by_naics_code
- Defined in:
- lib/earth/industry/mecs_ratio.rb
.find_by_naics_code(code) ⇒ Object
Find the first record whose naics_code matches code and whose energy per dollar shipment is present. If no record found chop off the last character of code and try again, and so on.
27 28 29 |
# File 'lib/earth/industry/mecs_ratio.rb', line 27 def self.find_by_naics_code(code) candidate = find_by_naics_code_and_census_region_number(code, nil) end |