Sha256: f3db9fb1674ff468fa2db349fd1062374232eb449a077ab48fe178416333bb78
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true module QasDockGem class GenFaker def initialize require 'faker' end def first_name(gender = nil) genders = %w[m f] gender = genders.sample if gender.nil? name = Faker::Name.male_first_name if gender == "m" name = Faker::Name.female_first_name if gender == "f" name end def last_name Faker::Name.last_name end def complete_name "#{first_name} #{last_name}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qas_dock_gem-0.1.41 | lib/qas_dock_gem/helpers/faker_helper.rb |