Module: FFaker::NameBR

Extended by:
ModuleUtils, NameBR
Included in:
NameBR
Defined in:
lib/ffaker/name_br.rb

Constant Summary collapse

PREFIXES =
%w(Sr. Sra. Srta.)

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore

Instance Method Details

#first_nameObject



18
19
20
# File 'lib/ffaker/name_br.rb', line 18

def first_name
  FIRST_NAMES.sample
end

#last_nameObject



22
23
24
# File 'lib/ffaker/name_br.rb', line 22

def last_name
  LAST_NAMES.sample
end

#nameObject



10
11
12
# File 'lib/ffaker/name_br.rb', line 10

def name
  "#{first_name} #{last_name}"
end

#name_with_prefixObject



14
15
16
# File 'lib/ffaker/name_br.rb', line 14

def name_with_prefix
  "#{prefix} #{name}"
end

#prefixObject



26
27
28
# File 'lib/ffaker/name_br.rb', line 26

def prefix
  PREFIXES.sample
end