class Faker::Book

Public Class Methods

author() click to toggle source

Produces a random book author

@return [String]

@example

Faker::Book.author #=> "Alysha Olsen"

@faker.version 1.9.3

# File lib/faker/books/book.rb, line 30
def author
  parse('book.author')
end
genre() click to toggle source

Produces a random genre

@return [String]

@example

Faker::Book.genre #=> "Mystery"

@faker.version 1.9.3

# File lib/faker/books/book.rb, line 56
def genre
  fetch('book.genre')
end
publisher() click to toggle source

Produces a random book publisher

@return [String]

@example

Faker::Book.publisher #=> "Opus Reader"

@faker.version 1.9.3

# File lib/faker/books/book.rb, line 43
def publisher
  fetch('book.publisher')
end
title() click to toggle source

Produces a random book title

@return [String]

@example

Faker::Book.title #=> "The Odd Sister"

@faker.version 1.9.3

# File lib/faker/books/book.rb, line 17
def title
  fetch('book.title')
end