class Faker::Medical::Patient

Public Class Methods

date_of_birth() click to toggle source
# File lib/faker/medical/patient.rb, line 7
def date_of_birth
  ::Time.random(:year_range => 80)
  #Date.parse("#{rand(12) + 1}/#{rand(27) + 1}/19#{format("%02d", rand(99))}" )
end
Also aliased as: dob
dob()
Alias for: date_of_birth
gender() click to toggle source
# File lib/faker/medical/patient.rb, line 13
def gender
  %w[M F].sample
end
phone_number() click to toggle source
# File lib/faker/medical/patient.rb, line 17
def phone_number
  Faker::PhoneNumber.phone_number
end