Skip to content
New Zealand IRD number checksum validation
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
weird.gemspec

README.md

WeIRD

A library for validating New Zealand IRD (tax) numbers.

Usage

    Weird.valid_ird?(ird_string)

Returns true if the ird is a valid ird as per the validation rules specified by the NZ Internal Revenue. See their spec for details: http://www.ird.govt.nz/resources/c/5/c5a1198040c469449d4bbddaafba9fa8/payroll-spec-2011-v3.pdf

Testing

To run the tests:

$ rake

To add tests see the Commands section earlier in this README.

Copyright

Copyright (c) 2012 Hooroo. See LICENSE for details.

Something went wrong with that request. Please try again.