Sha256: c887e24807db48b217101fd3a3aa6d51696193b6db03160af97e99d9bb5dfd2c

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

# Dixon [![Gem Version](https://badge.fury.io/rb/dixon.png)](http://badge.fury.io/rb/dixon)

[Frank] Dixon checks your ID number.

Now only supports identification number for Taiwan, more are coming up.

## Requirements

Ruby 2.0+

## Installation

    $ gem install dixon

## API

Provides three instance methods: `checks`, `gender`, and `issued_by`.

* `checks` checks if given ID is a valid Taiwan identification number.

* `gender` returns gender of given ID.

* `issued_by` returns which local agencies issued this ID.

## Usage

    Dixon::Validators::Taiwan.new.checks 'A123456789'
    => true

    Dixon::Validators::Taiwan.new.gender 'A123456789'
    => "male"

    Dixon::Validators::Taiwan.new.issued_by 'A123456789'
    => "Taipei City"

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## Author

Juanito Fatas

## License

MIT License

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dixon-0.1.0 README.md