Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cibernox/spanish_ccc_validator

Simple validator for spanish bank account numbers
https://github.com/cibernox/spanish_ccc_validator

Last synced: about 1 month ago
JSON representation

Simple validator for spanish bank account numbers

Awesome Lists containing this project

README

        

= Simple Spanish Account Number Validator

== SYNOPSIS

This gem provides a simple way to validate spanish bank account numbers.

== INSTALL

==== Directly:

gem install spanish_ccc_validator

==== With bundler:
In your Gemfile
gem "spanish_ccc_validator"
Then exec
bundle install

== USAGE
It provides only a fancy method
validate_spanish_ccc :account_number

It can be mixed with all options you're used to
validate_spanish_ccc :origin_account_number, :destination_account_number,
:message => "seems incorrect",
:if => lambda { |sell| sell.payment_method == 'transfer' }

Copyright (c) 2012 Miguel Camba