0.0
No commit activity in last 3 years
No release in over 3 years
Validar numero de serie de documento nacional RUT Chile
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.7
 Project Readme

srcei-tools

srcei-tools is a Ruby library for validating Serial Number Chilean Document. You can check in on Registro Civil

INSTALLATION

gem install srcei-tools

The gem should be compatible with most Ruby versions.

USAGE

require 'srcei-tools'
# the parameters are RUT, Document Type and Serial Number
SRCEITools::ValidateDI.valid?("55555555-5", "CEDULA", "103500XXX")
=> true

In Document Type Parameters you can use

  • CEDULA
  • CEDULA_EXT
  • PASAPORTE_PG
  • PASAPORTE_DIPLOMATICO
  • PASAPORTE_OFICIAL

License

This library is distributed under the MIT license. Please see the LICENSE file.