Skip to main content

book Domain

The book domain maps domain keywords to underlying faker implementations.

Faker Documentation

Methods

book.author

Returns a random author name.

No parameters.

Examples:

Shows the default book.author call.

book.author

Returns: Ian McEwan

book.format

Returns a random book format.

No parameters.

Examples:

Shows the default book.format call.

book.format

Returns: Ebook

book.genre

Returns a random genre.

No parameters.

Examples:

Shows the default book.genre call.

book.genre

Returns: Graphic Novel

book.publisher

Returns a random publisher.

No parameters.

Examples:

Shows the default book.publisher call.

book.publisher

Returns: Golden Cockerel Press

book.series

Returns a random series.

No parameters.

Examples:

Shows the default book.series call.

book.series

Returns: The Bartimaeus Trilogy

book.title

Returns a random title.

No parameters.

Examples:

Shows the default book.title call.

book.title

Returns: Moby Dick