Module: Faker::CpfCnpj

Extended by:
CpfCnpj, ModuleUtils
Included in:
CpfCnpj
Defined in:
lib/ffaker-cpfcnpj/cpfcnpj.rb

Instance Method Summary collapse

Instance Method Details

#cnpj(seed = nil) ⇒ Object



13
14
15
# File 'lib/ffaker-cpfcnpj/cpfcnpj.rb', line 13

def cnpj seed = nil
  Cnpj.new('').gerar generate_seed(seed)
end

#cpf(seed = nil) ⇒ Object



9
10
11
# File 'lib/ffaker-cpfcnpj/cpfcnpj.rb', line 9

def cpf seed = nil
  Cpf.new('').gerar generate_seed(seed)
end