credit_card_reader

Build Status Code Climate Test Coverage

Detect credit card information.

Instration

Add this line to your application's Gemfile:

gem 'credit_card_reader'

And then execute:

$ bundle

Or install it yourself as:

$ gem install credit_card_reader

Usage

require "credit_card_reader"

detector = CreditCardReader::Detector.new
detector.detect("0123456789012345")

Test

bundle exec rspec

Sources