Kups v0.1.0 Kups.Person View Source

Functions for generating fake data related to a person (any gender).

Link to this section Summary

Functions

Generates first name of a person

Generates a full name of a person

Generates gender of a person

Generates last name of a person

Generates salutation of a person

Link to this section Functions

Generates first name of a person.

Example

iex> Kups.Person.first_name
  "Maria"
Link to this function full_name(with_middle_initial \\ false) View Source

Generates a full name of a person.

Accepts a boolean parameter. Defaults to false.

Examples

  iex(1)> Kups.Person.full_name(true)
  "Maria R. Dela Cruz"
  iex(2)> Kups.Person.full_name
  "Maria Dela Cruz"

Generates gender of a person.

Example

iex> Kups.Person.gender
  "male"

Generates last name of a person.

Example

iex> Kups.Person.last_name
  "Dela Cruz"

Generates salutation of a person.

Example

iex> Kups.Person.prefix
  "Gng."