Sha256: 426ae49586d43e1528a02a82b89fe2deebb62336cc14b275cc8abc5c1d69d2ab

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

require_relative "./idcard_operation/version"
require_relative './idcard_operation/idcard_info'
require_relative './idcard_operation/roc_idcard_info'

module IdcardOperation
  class << self
    def analysis(idcard)
      if idcard.length == 18
        IdcardInfo.new(idcard)
      else
        RocIdcardInfo.new(idcard)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
idcard_operation-0.1.0 lib/idcard_operation.rb