Sha256: 798c9cb17825ec67c63682295796954cc0ae5d475147c9f93fc2214b062e47f5
Contents?: true
Size: 346 Bytes
Versions: 1
Compression:
Stored size: 346 Bytes
Contents
class CSI def self.lookup_sic(code) return if code.nil? end def self.lookup_naics(code) return nil if code.nil? begin file = File.open("#{File.expand_path(__FILE__+'/..')}/data/naics/2012/#{code}", "rb") contents = file.read contents.strip! return contents rescue return nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
csi-0.1.0 | lib/csi.rb |