Sha256: cd6d4ac2ba8a6dad04574c444b63b7331c83714779836f067c274a29deb5cbb4

Contents?: true

Size: 507 Bytes

Versions: 2

Compression:

Stored size: 507 Bytes

Contents

module ItidMapping
  ITID_LETTER = {
    "A" => [1, 0], "B" => [1, 1], "C" => [1, 2], "D" => [1, 3],
    "E" => [1, 4], "F" => [1, 5], "G" => [1, 6], "H" => [1, 7],
    "I" => [3, 4], "J" => [1, 8], "K" => [1, 9], "L" => [2, 0],
    "M" => [2, 1], "N" => [2, 2], "O" => [3, 5], "P" => [2, 3],
    "Q" => [2, 4], "R" => [2, 5], "S" => [2, 6], "T" => [2, 7],
    "U" => [2, 8], "V" => [2, 9], "W" => [3, 2], "X" => [3, 0],
    "Y" => [3, 1], "Z" => [3, 3]
  }

  MULTIPLIER = [1,9,8,7,6,5,4,3,2,1].freeze
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
taiwanese_id_validator-0.0.3 lib/international_id_validator/itid_mapping.rb
taiwanese_id_validator-0.0.2 lib/international_id_validator/itid_mapping.rb