Sha256: 86dbd40359a086629d1caab1f5f1246890fe0d1adc8b3338a7513b9113f9b185

Contents?: true

Size: 485 Bytes

Versions: 1

Compression:

Stored size: 485 Bytes

Contents

require 'toml'
require 'csi/record'
require 'csi/errors'

module CSI
  class << self
    # Fetch a NAICS Record based on the 2-6 digit code.
    #
    # Returns a CSI::NAICSRecord if found; nil otherwise.
    def naics(code)
      naics_record = CSI::Record.new('NAICS', code)
    end

    # Fetch a SIC Record based on the 2-4 digit code.
    #
    # Returns a CSI::SICRecord if found; nil otherwise.
    def sic(code)
      sic_record = CSI::Record.new('SIC', code)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
csi-0.3.3 lib/csi.rb