Sha256: b80ed9c26796a1cceba368dc6f917653e01fe0fa6203867f09d6d136475784df
Contents?: true
Size: 664 Bytes
Versions: 5
Compression:
Stored size: 664 Bytes
Contents
# encoding: utf-8 require 'ffaker/address' module Faker module AddressBR include Faker::Address extend ModuleUtils extend self STREET_PREFIX = %w( Rua Avenida Travessa Alameda ) def zip_code Faker.numerify '#####-###' end def state STATE.sample end def state_abbr STATE_ABBR.sample end def city CITY.sample end def street_prefix STREET_PREFIX.sample end def street case rand(1) when 0 then "#{street_prefix} #{NameBR.name}" when 1 then "#{street_prefix} #{NameBR.first_name} #{NameBR.last_name} #{NameBR.last_name}" end end end end
Version data entries
5 entries across 5 versions & 2 rubygems