Sha256: dce3f3248a386560a954571d04abbf0d1bfa1cf11b6f3813447b1791f4b4e8d1
Contents?: true
Size: 581 Bytes
Versions: 2
Compression:
Stored size: 581 Bytes
Contents
# Generates random bank account information class Forgery::BankAccount < Forgery # Gets a random iban out of the 'ibans' dictionary. # # Forgery(:bank_account).iban # # => "BE68539007547034" # # Forgery(:bank_account).iban # # => "FI2112345600000785" def self.iban dictionaries[:ibans].random.unextend end # Gets a random bic out of the 'bics' dictionary. # # Forgery(:bank_account).bic # # => "AARBDE5W100" # # Forgery(:bank_account).bic # # => "GENODEF1PA1" def self.bic dictionaries[:bics].random.unextend end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
forgery-0.8.1 | lib/forgery/forgery/bank_account.rb |
forgery-0.7.0 | lib/forgery/forgery/bank_account.rb |