Validação de inscrição estadual para ruby
Add this line to your application's Gemfile:
gem 'br_inscricao_estadual'
And then execute:
$ bundle
Or install it yourself as:
$ gem install br_inscricao_estadual
insc_est = BrInscricaoEstadual::Base.new(inscricao_estadual,uf) # uf values 'AC','RS'....
insc_est.valid? # if valid return true else false
Exemplo:
insc_est = BrInscricaoEstadual::Base.new('01.004.823/001-12','AC')
insc_est.valid?
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request ======= br_inscricao_estadual =====================