Sha256: 39e2d7f1994806a2043f9732907e47b1603d6efad463776e68f941db145d8d52

Contents?: true

Size: 401 Bytes

Versions: 3

Compression:

Stored size: 401 Bytes

Contents

# encoding: utf-8

module FFaker
  module NameBR
    extend ModuleUtils
    extend self

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

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

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

    def first_name
      FIRST_NAMES.sample
    end

    def last_name
      LAST_NAMES.sample
    end

    def prefix
      PREFIXES.sample
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ffaker-2.2.0 lib/ffaker/name_br.rb
ffaker-2.1.0 lib/ffaker/name_br.rb
ffaker-2.0.0 lib/ffaker/name_br.rb