Sha256: 3434dbc80e8c8a067b782cfd4d3e3a4d710f3ecf2da4e519bb16ce68c96f6166
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 Bytes
Contents
# encoding: utf-8 require 'ffakerer/address' module Faker module AddressCA include Faker::Address extend ModuleUtils extend self def postal_code Faker.bothify(POSTAL_CODE_FORMATS.rand).upcase end def province PROVINCE.rand end def province_abbr PROVINCE_ABBRS.rand end POSTAL_CODE_FORMATS = k ['?#? #?#'] PROVINCE_ABBRS = k %w(NL NS PE NB QC ON MB SK AB BC YT NT NU) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffakerer-1.0.2 | lib/ffakerer/address_ca.rb |
ffakerer-1.0.1 | lib/ffakerer/address_ca.rb |