Skip to content

marjaimate/swift-code-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

SWIFT Code Tool

SWIFT (BIC) Code Tool for validating

Usage

sc = SWIFTCodeTool::SWIFT.new('deutdeff')

sc.code
=> "DEUTDEFF"

sc.bank_code
=> "DEUT"

sc.country_code
=> "DE"

sc.location_code
=> "FF"

sc.branch_code
=> ""

SWIFTCodeTool::SWIFT.valid?('DEUTDEFF')
=> true

SWIFTCodeTool::SWIFT.valid?('DEUT DE MU', 'de')
=> true

About

Swift code validation in Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published